diff --git a/admin/src/utils/request/axios.ts b/admin/src/utils/request/axios.ts index b1b2eea8e7c173d5ef67748e0ac5609576848075..f02df7c26864cf191d504e27500d1593e80ba02f 100644 --- a/admin/src/utils/request/axios.ts +++ b/admin/src/utils/request/axios.ts @@ -46,6 +46,9 @@ export class Axios { this.axiosInstance.interceptors.request.use( (config) => { this.addCancelToken(config) + if (response.data instanceof Blob) { + return response + } if (isFunction(requestInterceptorsHook)) { config = requestInterceptorsHook(config) as InternalAxiosRequestConfig }