token 无效

This commit is contained in:
2022-09-22 14:16:30 +08:00
parent b623970db8
commit 2f149911ba
14 changed files with 118 additions and 59 deletions

View File

@@ -17,6 +17,7 @@ router.beforeEach((to, from, next) => {
}
NProgress.start()
if (getToken()) {
// debugger
// 已登录且要跳转的页面是登录页
if (to.path === '/login') {
next({ path: '/' })