This commit is contained in:
@zuopngfei 2025-07-10 13:35:59 +08:00
parent 344e852481
commit d0ae0020f9
2 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ router.beforeEach(async (to, from, next) => {
const token = GET_TOKEN()
if (token) {
if (to.path === '/login') {
next('/index')
next('/user')
} else {
next()
}

View File

@ -47,8 +47,8 @@ request.interceptors.response.use(
message: error.response.data.message,
duration: 2000,
onClose: () => {
if(location.pathname != '/index'){
location.href = '/index'
if(location.pathname != '/system/login'){
location.href = '/system/login'
}
}
})