提交 419b7aea 编写于 作者: Z zuihou

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

上级 e807539b
......@@ -113,7 +113,7 @@ export class VAxios {
isFunction(responseInterceptorsCatch) &&
this.axiosInstance.interceptors.response.use(undefined, (error) => {
// @ts-ignore
responseInterceptorsCatch(this.axiosInstance, error);
return responseInterceptorsCatch(this.axiosInstance, error);
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册