This commit is contained in:
雷欧(林平凡)
2025-09-19 16:38:41 +08:00
parent 0c1201baee
commit fab8df2f1c
3 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ router.beforeEach((to, from, next) => {
to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
/* has token*/
if (to.path === '/login') {
next({ path: '/' })
next({ path: '/sloworder/index' })
NProgress.done()
} else if (isWhiteList(to.path)) {
next()
@@ -39,7 +39,7 @@ router.beforeEach((to, from, next) => {
}).catch(err => {
store.dispatch('LogOut').then(() => {
Message.error(err)
next({ path: '/' })
next({ path: '/sloworder/index' })
})
})
} else {