mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 12:09:13 +08:00
refactor: 修改前端ajax对于返回错误的判断
This commit is contained in:
parent
aa5c66b8aa
commit
591f45477e
@ -101,7 +101,7 @@ instance.interceptors.response.use(response => {
|
||||
return response;
|
||||
}, error => {
|
||||
let msg;
|
||||
if (error.response) {
|
||||
if (error.response && error.response.headers) {
|
||||
// 判断错误标记
|
||||
if (error.response.status === 402) {
|
||||
if (error.response.headers['redirect']) {
|
||||
|
Loading…
Reference in New Issue
Block a user