提交 419b7aea 作者: zuihou

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

上级 e807539b
...@@ -113,7 +113,7 @@ export class VAxios { ...@@ -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);
}); });
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论