src/types/pinia.d.ts
@@ -9,12 +9,29 @@ roles: string[]; time: number; userName: string; clientCode:string, clientName:string [key: string]: T; } declare interface UserInfosState { userInfos: UserInfos; } // 患者信息 declare interface patientsInfo<T=any>{ id:string, code:string, age:number, patientName:string, patientGenderText:string, //头像 patientAvatarIcon:string, [key: string]: T; } declare interface patientsInfoState { patientsInfo: patientsInfo; } // 路由缓存列表 declare interface KeepAliveNamesState { keepAliveNames: string[];