diff --git a/src/api/user.ts b/src/api/user.ts index 99b9e4a1..71f273e8 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -30,8 +30,8 @@ export interface UserInfoResult { name: string; // 名称 username: string; // 用户名 } -export function userInfoApi(returnAxios = false, noLoading = true) { - return request( +export function userInfoApi(returnAxios:T = false as T, noLoading = true) { + return request( () => ({ url: Api.USER_INFO, method: 'get',