🐛 fixed redirect to login query params lossed (#94)

Co-authored-by: zhuhq <616928019@qq.com>
This commit is contained in:
hqzh
2020-06-04 14:36:12 +08:00
committed by GitHub
parent 68bfa0df74
commit 13b3c6c42a

View File

@@ -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()
}
}