修改禅道已知bug

This commit is contained in:
qq787203167
2022-05-07 15:32:50 +08:00
parent 72ecc67954
commit 11853bb552
3 changed files with 68 additions and 65 deletions
+4 -2
View File
@@ -49,8 +49,9 @@ router.beforeEach((to, from, next) => {
message: '系统提示',
description: '请求用户信息失败,请重试!'
})*/
// query: { redirect: to.fullPath }
store.dispatch('Logout').then(() => {
next({ path: '/user/login', query: { redirect: to.fullPath } })
next({ path: '/user/login', })
})
})
} else {
@@ -62,7 +63,8 @@ router.beforeEach((to, from, next) => {
// 在免登录白名单,直接进入
next()
} else {
next({ path: '/user/login', query: { redirect: to.fullPath } })
//query: { redirect: to.fullPath }
next({ path: '/user/login', })
NProgress.done() // if current page is login will not trigger afterEach hook, so manually handle it
}
}