mirror of
https://github.com/yangzongzhuan/RuoYi-Cloud.git
synced 2025-06-07 06:18:59 +00:00
状态码401返回Promise.reject
This commit is contained in:
parent
e798f46876
commit
9920957796
@ -66,6 +66,7 @@ service.interceptors.response.use(res => {
|
||||
location.href = '/index';
|
||||
})
|
||||
}).catch(() => {});
|
||||
return Promise.reject('error')
|
||||
} else if (code === 500) {
|
||||
Message({
|
||||
message: msg,
|
||||
|
Loading…
Reference in New Issue
Block a user