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

This commit is contained in:
zuihou 2022-05-06 10:39:46 +08:00
parent e807539b80
commit 419b7aea07

View File

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