vue-vben-admin/types/store.d.ts

41 lines
809 B
TypeScript
Raw Permalink Normal View History

import { ErrorTypeEnum } from '/@/enums/exceptionEnum'
import { MenuModeEnum, MenuTypeEnum } from '/@/enums/menuEnum'
import { RoleInfo } from '/@/api/sys/model/userModel'
2021-04-10 19:25:49 +08:00
// Error-log information
export interface ErrorLogInfo {
// Type of error
type: ErrorTypeEnum
2021-04-10 19:25:49 +08:00
// Error file
file: string
2021-04-10 19:25:49 +08:00
// Error name
name?: string
2021-04-10 19:25:49 +08:00
// Error message
message: string
2021-04-10 19:25:49 +08:00
// Error stack
stack?: string
2021-04-10 19:25:49 +08:00
// Error detail
detail: string
2021-04-10 19:25:49 +08:00
// Error url
url: string
2021-04-10 19:25:49 +08:00
// Error time
time?: string
2021-04-10 19:25:49 +08:00
}
export interface UserInfo {
userId: string | number
username: string
realName: string
avatar: string
desc?: string
homePath?: string
roles: RoleInfo[]
2021-04-10 19:25:49 +08:00
}
export interface BeforeMiniState {
menuCollapsed?: boolean
menuSplit?: boolean
menuMode?: MenuModeEnum
menuType?: MenuTypeEnum
2021-04-10 19:25:49 +08:00
}