fix(auth): 修正后端返回数据结构,从 res.data 中提取登录数据

This commit is contained in:
En 2026-03-09 19:09:53 +08:00
parent 73ed8015b9
commit 70e9683506

View File

@ -29,7 +29,7 @@ export interface UserProfile {
// 登录
export function login(params: LoginParams): Promise<LoginResponse> {
return http.post('/auth/login', params);
return http.post('/auth/login', params).then((res: any) => res.data);
}
// 登出