v3.7.0 code=401时request方法没有返回Promise.reject 修复
This commit is contained in:
parent
fc3aa2047c
commit
ba74c587b7
@ -73,6 +73,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