fix(auth): 修正后端返回数据结构,从 res.data 中提取登录数据
This commit is contained in:
parent
73ed8015b9
commit
70e9683506
@ -29,7 +29,7 @@ export interface UserProfile {
|
|||||||
|
|
||||||
// 登录
|
// 登录
|
||||||
export function login(params: LoginParams): Promise<LoginResponse> {
|
export function login(params: LoginParams): Promise<LoginResponse> {
|
||||||
return http.post('/auth/login', params);
|
return http.post('/auth/login', params).then((res: any) => res.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 登出
|
// 登出
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user