1234567891011121314151617181920212223242526272829 |
- import { RouterTy } from '@/types/router'
- import { ObjTy } from '@/types/common'
- export interface StateTy {
- app: AppTy
- permission: PermissionTy
- user: UserTy
- }
- export interface UserTy {
- username: string
- avatar: string
- roles: Array<string>
- }
- export interface AppTy {
- sidebar: {
- opened: boolean
-
-
- }
- device: string
- settings: ObjTy
- cachedViews: Array<string>
- cachedViewsDeep: Array<string>
- }
- export interface PermissionTy {
- isGetUserInfo: boolean
- routes: RouterTy
- addRoutes: RouterTy
- }
|