修复BUG:

1.接口报错后,继续通过的情况
This commit is contained in:
猿小天
2023-12-20 23:43:32 +08:00
parent 23d320434e
commit 916071814a
2 changed files with 9 additions and 2 deletions

View File

@@ -96,12 +96,13 @@ function createService() {
return dataAxios;
case 4000:
errorCreate(`${dataAxios.msg}: ${response.config.url}`);
return dataAxios;
break;
default:
// 不是正确的 code
errorCreate(`${dataAxios.msg}: ${response.config.url}`);
return dataAxios;
break;
}
return Promise.reject();
}
},
(error) => {