From 527cf89d1a959b55595216bc0b4654afdd9412a2 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 21 Aug 2024 17:38:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=81=BF=E5=85=8Dget=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=B8=A6body=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/http-fetch.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/http-fetch.ts b/src/plugins/http-fetch.ts index 09d0b96d..e1205c68 100644 --- a/src/plugins/http-fetch.ts +++ b/src/plugins/http-fetch.ts @@ -196,6 +196,8 @@ function beforeRequest(options: OptionsType): OptionsType | Promise { } } + if (options.method === 'get') return options; + // 非get参数提交 let body = options.data if (body instanceof FormData) {