From 4044a080fc48e0a7fc0540ed39b653e5ab391dca Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 12 Sep 2024 19:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=91download=20=E6=97=A0=E6=B3=95=E5=AF=BC=E5=87=BA=20exce?= =?UTF-8?q?l=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http/axios/Axios.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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