From 20c44595df8b909dc27f73d477c5d18d0a120808 Mon Sep 17 00:00:00 2001 From: lq Date: Mon, 5 May 2025 13:06:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=BF=87=E6=9C=9F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api/request.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/src/api/request.ts b/apps/web-antd/src/api/request.ts index b45ef001..92670b87 100644 --- a/apps/web-antd/src/api/request.ts +++ b/apps/web-antd/src/api/request.ts @@ -131,12 +131,12 @@ function createRequestClient(baseURL: string) { throw Object.assign({}, response, { response }); } } - } else if (response.data instanceof Blob) { + } + if (response.data instanceof Blob) { return response; } - return response; - // throw Object.assign({}, response, { response }); + throw Object.assign({}, response, { response }); }, });