mirror of
https://github.com/yangzongzhuan/RuoYi-Vue.git
synced 2025-09-08 07:37:46 +00:00
code=401时request方法没有返回Promise.reject 修复
This commit is contained in:
@@ -64,6 +64,7 @@ service.interceptors.response.use(res => {
|
||||
location.href = '/index';
|
||||
})
|
||||
}).catch(() => {});
|
||||
return Promise.reject('error')
|
||||
} else if (code === 500) {
|
||||
Message({
|
||||
message: msg,
|
||||
|
Reference in New Issue
Block a user