diff --git a/src/utils/http/axios/Axios.ts b/src/utils/http/axios/Axios.ts index 693adcc5f..47c1b4031 100644 --- a/src/utils/http/axios/Axios.ts +++ b/src/utils/http/axios/Axios.ts @@ -289,7 +289,6 @@ export class VAxios { this.axiosInstance .request>(conf) .then((res: AxiosResponse) => { - debugger if (transformResponseHook && isFunction(transformResponseHook)) { try { const ret = transformResponseHook(res, opt) @@ -298,7 +297,8 @@ export class VAxios { catch (err) { reject(err || new Error('request error!')) } - return + // 注释 return,解决无法导出的问题。参见 https://t.zsxq.com/79cmo 说明。 + // return } resolve(res as unknown as Promise) // download file