修改已知bug

This commit is contained in:
qq787203167
2022-06-02 10:24:49 +08:00
parent c94daaef66
commit bdbb5b233d
+3 -3
View File
@@ -51,7 +51,7 @@ router.beforeEach((to, from, next) => {
})*/ })*/
// query: { redirect: to.fullPath } // query: { redirect: to.fullPath }
store.dispatch('Logout').then(() => { store.dispatch('Logout').then(() => {
next({ path: '/user/login', }) next({ path: '/user/login', query: { redirect: to.fullPath } })
}) })
}) })
} else { } else {
@@ -63,8 +63,8 @@ router.beforeEach((to, from, next) => {
// 在免登录白名单,直接进入 // 在免登录白名单,直接进入
next() next()
} else { } 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 NProgress.done() // if current page is login will not trigger afterEach hook, so manually handle it
} }
} }