From bdbb5b233d17b0db25dd5a3eda3c45cd77e0077a Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Thu, 2 Jun 2022 10:24:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=B2=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/permission.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jero-web/src/permission.js b/jero-web/src/permission.js index 419112d34..ed185df30 100644 --- a/jero-web/src/permission.js +++ b/jero-web/src/permission.js @@ -51,7 +51,7 @@ router.beforeEach((to, from, next) => { })*/ // query: { redirect: to.fullPath } store.dispatch('Logout').then(() => { - next({ path: '/user/login', }) + next({ path: '/user/login', query: { redirect: to.fullPath } }) }) }) } else { @@ -63,8 +63,8 @@ router.beforeEach((to, from, next) => { // 在免登录白名单,直接进入 next() } else { - //query: { redirect: to.fullPath } - next({ path: '/user/login', }) + + next({ path: '/user/login', query: { redirect: to.fullPath } }) NProgress.done() // if current page is login will not trigger afterEach hook, so manually handle it } }