mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-02-02 19:08:40 +08:00
fix(axios): 请求异常时,无法正确执行 catch
This commit is contained in:
parent
138b206fc4
commit
bfef788ef3
@ -114,7 +114,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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user