From 31db8d423fbf3617c0add251033e63c1ebeb0486 Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Wed, 3 Mar 2021 12:05:23 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96](v2.6)?= =?UTF-8?q?=EF=BC=9A=E4=BF=AE=E5=A4=8D=E9=87=8D=E6=96=B0=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=90=8E=E9=87=8D=E5=AE=9A=E5=90=91=E5=8F=82=E6=95=B0=E4=B8=A2?= =?UTF-8?q?=E5=A4=B1=EF=BC=8C=E5=85=B7=E4=BD=93=E6=9F=A5=E7=9C=8B=E5=A6=82?= =?UTF-8?q?=E4=B8=8B=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close https://github.com/elunez/eladmin/issues/584 --- src/views/login.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/login.vue b/src/views/login.vue index 4b1b833..085713c 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -46,6 +46,7 @@ import { encrypt } from '@/utils/rsaEncrypt' import Config from '@/settings' import { getCodeImg } from '@/api/login' import Cookies from 'js-cookie' +import qs from 'qs' import Background from '@/assets/images/background.jpg' export default { name: 'Login', @@ -73,7 +74,12 @@ export default { watch: { $route: { handler: function(route) { - this.redirect = route.query && route.query.redirect + if (route.query) { + const data = route.query + this.redirect = data.redirect + delete data.redirect + this.redirect = this.redirect + '&' + qs.stringify(data, { indices: false }) + } }, immediate: true }