fix: 修复密码登陆响应类型定义
This commit is contained in:
@@ -17,7 +17,7 @@ export async function loginByPassword(identifier: string, password: string) {
|
|||||||
throw new APIError('密码长度只能为6~32位')
|
throw new APIError('密码长度只能为6~32位')
|
||||||
}
|
}
|
||||||
|
|
||||||
return clientFetch<User>('/api/auth/login/password', {
|
return clientFetch<{ user: User }>('/api/auth/login/password', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
identifier,
|
identifier,
|
||||||
|
|||||||
Reference in New Issue
Block a user