Commit 419b7aea078d2a12a3d866a758162c9e2f697be9
1 parent
e807539b
fix(axios): 请求异常时,无法正确执行 catch
Showing
1 changed file
with
1 additions
and
1 deletions
src/utils/http/axios/Axios.ts
@@ -113,7 +113,7 @@ export class VAxios { | @@ -113,7 +113,7 @@ export class VAxios { | ||
113 | isFunction(responseInterceptorsCatch) && | 113 | isFunction(responseInterceptorsCatch) && |
114 | this.axiosInstance.interceptors.response.use(undefined, (error) => { | 114 | this.axiosInstance.interceptors.response.use(undefined, (error) => { |
115 | // @ts-ignore | 115 | // @ts-ignore |
116 | - responseInterceptorsCatch(this.axiosInstance, error); | 116 | + return responseInterceptorsCatch(this.axiosInstance, error); |
117 | }); | 117 | }); |
118 | } | 118 | } |
119 | 119 |