From 13b3c6c42a23b4e618231184f985cafa67af8de1 Mon Sep 17 00:00:00 2001 From: hqzh Date: Thu, 4 Jun 2020 14:36:12 +0800 Subject: [PATCH] :bug: fixed redirect to login query params lossed (#94) Co-authored-by: zhuhq <616928019@qq.com> --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index b2a231b..ba03435 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -46,7 +46,7 @@ router.beforeEach((to, from, next) => { if (whiteList.indexOf(to.path) !== -1) { // 在免登录白名单,直接进入 next() } else { - next(`/login?redirect=${to.path}`) // 否则全部重定向到登录页 + next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页 NProgress.done() } }