refactor: 重构异常处理

This commit is contained in:
橙子
2023-03-19 23:44:38 +08:00
parent 7b01d4722f
commit f4cdeb3dc5
9 changed files with 23 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ myaxios.interceptors.request.use(function (config) {
// 响应拦截器
myaxios.interceptors.response.use(function (response) {
return response.data;
return response;
}, function (error) {
return Promise.reject(error);
});