fix: 修复密码登陆响应类型定义

This commit is contained in:
2025-12-17 15:34:35 +08:00
parent 83b68b0669
commit 84a6e0876c

View File

@@ -17,7 +17,7 @@ export async function loginByPassword(identifier: string, password: string) {
throw new APIError('密码长度只能为6~32位')
}
return clientFetch<User>('/api/auth/login/password', {
return clientFetch<{ user: User }>('/api/auth/login/password', {
method: 'POST',
body: JSON.stringify({
identifier,