修改已知bug
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user