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],