mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-08 13:16:41 +08:00
修改登录失效code
This commit is contained in:
parent
664309804a
commit
d6e49a8b50
@ -38,7 +38,7 @@ smartAxios.interceptors.response.use(
|
||||
const res = response.data;
|
||||
if (res.code && res.code !== 1) {
|
||||
// `token` 过期或者账号已在别处登录
|
||||
if (res.code === 1001) {
|
||||
if (res.code === 30007 || res.code === 30008) {
|
||||
message.error('您没有登录,请重新登录');
|
||||
//TODO 跳转到登录页面
|
||||
setTimeout(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user