From ac8d4301011640f0b5886b91786bfceaf69ac4fe Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 26 Jan 2024 14:34:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20http204=E5=86=85=E5=AE=B9=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/http-fetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/http-fetch.ts b/src/plugins/http-fetch.ts index 25a95681..fb4294c7 100644 --- a/src/plugins/http-fetch.ts +++ b/src/plugins/http-fetch.ts @@ -329,7 +329,7 @@ function stateCode(res: Response) { }; } // 上传文件成功无内容返回 - if (res.status === 204 && res.statusText === 'No Content') { + if (res.status === 204 || res.statusText === 'No Content') { return { code: RESULT_CODE_SUCCESS, msg: RESULT_MSG_SUCCESS[language],