fix: 优化用户信息展示
This commit is contained in:
@@ -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;
|
||||
}>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user