fix: 兼容后端 code 类型不统一问题

This commit is contained in:
ZhuRui
2026-08-07 11:20:30 +08:00
parent ea24625805
commit 05c3d518fa
32 changed files with 42 additions and 42 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ export type { LoginResult } from './types';
export const login = (params: { phone: string; password: string }) => {
return post(`/op/login`, params) as Promise<{
code: string;
code: number | string;
msg: string;
data: LoginResult;
}>;