fix(axios): 请求异常时,无法正确执行 catch

This commit is contained in:
zuihou 2022-05-06 10:39:46 +08:00 committed by JinMao
parent 138b206fc4
commit bfef788ef3

View File

@ -114,7 +114,7 @@ export class VAxios {
isFunction(responseInterceptorsCatch) &&
this.axiosInstance.interceptors.response.use(undefined, (error) => {
// @ts-ignore
responseInterceptorsCatch(this.axiosInstance, error);
return responseInterceptorsCatch(this.axiosInstance, error);
});
}