From 164a2c0bc551fd003ba2f48ad8251c3d306dae61 Mon Sep 17 00:00:00 2001 From: orzi <1063614727@qq.com> Date: Tue, 17 Mar 2026 13:00:39 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E5=A4=8Dget=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E7=9A=84=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/utils/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/utils/request.ts b/web/src/utils/request.ts index ac25c6d7..9824e58e 100644 --- a/web/src/utils/request.ts +++ b/web/src/utils/request.ts @@ -81,7 +81,7 @@ export function createApi(): Readonly { return request({ method, url: _path.join('/'), - data: args[0], + ...(method === 'get' ? { params: args[0] } : { data: args[0] }), }); }, { get(target: any, p: string) {