添加密码登录&调整接口数据展示&配置底部导航跳转

This commit is contained in:
Eamon-meng
2025-07-01 11:32:37 +08:00
parent b096e20fcd
commit bae4ee9b92
9 changed files with 175 additions and 92 deletions

View File

@@ -16,12 +16,13 @@ export async function login(props: {
username: string
password: string
remember: boolean
mode: 'phone_code' | 'password'
}): Promise<ApiResponse> {
// 尝试登录
const result = await callByDevice<TokenResp>('/api/auth/token', {
...props,
grant_type: 'password',
login_type: 'phone_code',
login_type: props.mode,
})
if (!result.success) {