mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 13:28:38 +08:00
优化代码
This commit is contained in:
@@ -57,7 +57,6 @@ api.interceptors.response.use(
|
||||
// 如果接口请求时发现 token 失效,则立马跳转到登录页
|
||||
if (response.data.status == 0) {
|
||||
toLogin()
|
||||
return false
|
||||
}
|
||||
Message.error(response.data.error)
|
||||
return Promise.reject(response.data)
|
||||
|
||||
Reference in New Issue
Block a user