fix: 优化用户信息展示

This commit is contained in:
ZhuRui
2026-08-05 16:02:01 +08:00
parent e79404aba9
commit b3458fd4b8
7 changed files with 70 additions and 9 deletions
+8 -1
View File
@@ -1,5 +1,12 @@
import { post } from '@/utils/request';
import type { LoginResult } from './types';
export type { LoginResult } from './types';
export const login = (params: { phone: string; password: string }) => {
return post(`/op/login`, params);
return post(`/op/login`, params) as Promise<{
code: number;
msg: string;
data: LoginResult;
}>;
};