添加密码登录&调整接口数据展示&配置底部导航跳转
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user