From 223485848cc966250ec2b19c7854c214f3a2f43c Mon Sep 17 00:00:00 2001 From: qyyfw Date: Sat, 11 Jul 2026 16:10:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20api/index.ts=20=E6=81=A2=E5=A4=8D?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=20request=20=E5=9F=BA=E7=A1=80=20HTTP=20?= =?UTF-8?q?=E5=8A=A9=E6=89=8B(1346fbb=20=E6=9C=89=20export,=20=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=A0=91=E9=81=97=E6=BC=8F),=20=E4=BE=9B=20UserPortal?= =?UTF-8?q?=20=E7=AD=89=E6=81=A2=E5=A4=8D=E9=A1=B5=E9=9D=A2=E4=BD=BF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts index ecf4892..092f390 100644 --- a/frontend/src/api/index.ts +++ b/frontend/src/api/index.ts @@ -10,7 +10,7 @@ function getToken(): string | null { } // 通用请求方法 -async function request( +export async function request( endpoint: string, options: RequestInit = {} ): Promise<{ code: number; data: T; message: string }> {