mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
fix(axios): 请求异常时,无法正确执行 catch
This commit is contained in:
parent
e807539b80
commit
419b7aea07
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user