From 70e9683506b37000129de955a53c083e439d0ddc Mon Sep 17 00:00:00 2001 From: En Date: Mon, 9 Mar 2026 19:09:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(auth):=20=E4=BF=AE=E6=AD=A3=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E8=BF=94=E5=9B=9E=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84?= =?UTF-8?q?=EF=BC=8C=E4=BB=8E=20res.data=20=E4=B8=AD=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reading-platform-frontend/src/api/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reading-platform-frontend/src/api/auth.ts b/reading-platform-frontend/src/api/auth.ts index 9731491..ce45446 100644 --- a/reading-platform-frontend/src/api/auth.ts +++ b/reading-platform-frontend/src/api/auth.ts @@ -29,7 +29,7 @@ export interface UserProfile { // 登录 export function login(params: LoginParams): Promise { - return http.post('/auth/login', params); + return http.post('/auth/login', params).then((res: any) => res.data); } // 登出