mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-23 22:51:54 +08:00
完成部分权限的认证操作的迁移
This commit is contained in:
@@ -61,7 +61,9 @@ service.interceptors.response.use(res => {
|
||||
}
|
||||
).then(() => {
|
||||
store.dispatch('LogOut').then(() => {
|
||||
location.href = '/index';
|
||||
if (location.pathname !== '/login') { // 避免重复跳转
|
||||
location.href = '/index';
|
||||
}
|
||||
})
|
||||
})
|
||||
} else if (code === 500) {
|
||||
|
Reference in New Issue
Block a user