From 2f592f95703fbff0234371cdd18f5f7c3a610d5d Mon Sep 17 00:00:00 2001 From: zhangchuanlong Date: Wed, 9 Mar 2022 12:37:18 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E7=99=BB?= =?UTF-8?q?=E9=99=86=E6=88=90=E5=8A=9F=E5=90=8E=E9=87=8D=E5=AE=9A=E5=90=91?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=A9=BA=E7=99=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index f1e0ef2..62af478 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -38,7 +38,9 @@ async function handleLogin() { setToken(res.data.token) if (query.redirect) { - router.push({ path: '/redirect', query }) + const path = query.redirect + Reflect.deleteProperty(query, 'redirect') + router.push({ path, query }) } else { router.push('/') }