优化:去掉不必要的loading
This commit is contained in:
7
types/user.ts → types/user.d.ts
vendored
7
types/user.ts → types/user.d.ts
vendored
@@ -1,4 +1,5 @@
|
||||
// types/user.ts
|
||||
import type { IApiResponse } from '@/api/types'
|
||||
|
||||
/**
|
||||
* 用户信息接口
|
||||
@@ -16,12 +17,12 @@ export interface IUserInfo {
|
||||
/**
|
||||
* 登录响应接口
|
||||
*/
|
||||
export interface ILoginResponse {
|
||||
userInfo: IUserInfo
|
||||
export interface ILoginResponse<T = IUserInfo> extends IApiResponse {
|
||||
token: {
|
||||
token: string
|
||||
[key: string]: any
|
||||
}
|
||||
},
|
||||
userInfo: T
|
||||
}
|
||||
|
||||
/**
|
||||
Reference in New Issue
Block a user