token 无效
This commit is contained in:
@@ -17,6 +17,7 @@ router.beforeEach((to, from, next) => {
|
||||
}
|
||||
NProgress.start()
|
||||
if (getToken()) {
|
||||
// debugger
|
||||
// 已登录且要跳转的页面是登录页
|
||||
if (to.path === '/login') {
|
||||
next({ path: '/' })
|
||||
|
||||
Reference in New Issue
Block a user