From 84a6e0876cb0740f11dd9d8d950b59fbcc434ab6 Mon Sep 17 00:00:00 2001 From: tone Date: Wed, 17 Dec 2025 15:34:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E7=99=BB=E9=99=86=E5=93=8D=E5=BA=94=E7=B1=BB=E5=9E=8B=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/frontend/lib/api/endpoints/auth.client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/lib/api/endpoints/auth.client.ts b/apps/frontend/lib/api/endpoints/auth.client.ts index 8e4eff1..9be9a42 100644 --- a/apps/frontend/lib/api/endpoints/auth.client.ts +++ b/apps/frontend/lib/api/endpoints/auth.client.ts @@ -17,7 +17,7 @@ export async function loginByPassword(identifier: string, password: string) { throw new APIError('密码长度只能为6~32位') } - return clientFetch('/api/auth/login/password', { + return clientFetch<{ user: User }>('/api/auth/login/password', { method: 'POST', body: JSON.stringify({ identifier,