同步电网一张图代码
This commit is contained in:
@@ -140,11 +140,11 @@ function createAxios<Data = any, T = ApiPromise<Data>>(
|
||||
})
|
||||
}
|
||||
} else if (response.data.code == 'A0024') {
|
||||
// 登录失效
|
||||
ElNotification({
|
||||
type: 'error',
|
||||
message: response.data.message
|
||||
})
|
||||
// // 登录失效
|
||||
// ElNotification({
|
||||
// type: 'error',
|
||||
// message: response.data.message
|
||||
// })
|
||||
adminInfo.removeToken()
|
||||
router.push({ name: 'login' })
|
||||
return Promise.reject(response.data)
|
||||
|
||||
Reference in New Issue
Block a user