From 44878e441c98907748813ecadab120ffde365dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Thu, 7 Mar 2024 19:09:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20wx=20=E8=AF=B7=E6=B1=82=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/http.ts b/src/utils/http.ts index 1a3d1a5..04cd7a4 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -54,7 +54,9 @@ export const http = (options: CustomRequestOptions) => { uni.request({ ...options, dataType: 'json', + // #ifndef MP-WEIXIN responseType: 'json', + // #endif // 响应成功 success(res) { // 状态码 2xx,参考 axios 的设计