store.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * @FilePath: store.d.ts
  3. * @Author: 旭颖
  4. * @Date: 2022-10-31 14:56:49
  5. * @LastEditors: Please set LastEditors
  6. * @LastEditTime: 2023-07-01 16:18:38
  7. */
  8. import { VabRouteMeta, VabRouteRecord } from '/#/router'
  9. declare interface AclModuleType {
  10. admin: boolean
  11. role: string[]
  12. permission: string[]
  13. }
  14. declare interface ErrorLogModuleType {
  15. errorLogs: any[]
  16. }
  17. declare interface RoutesModuleType {
  18. tab: {
  19. data: string | undefined
  20. }
  21. tabMenu: string | undefined
  22. activeMenu: {
  23. data: string | undefined
  24. }
  25. routes: VabRouteRecord[]
  26. }
  27. declare type DeviceType = 'mobile' | 'desktop'
  28. declare type LanguageType = 'zh' | 'en'
  29. declare interface SettingsModuleType {
  30. theme: ThemeType
  31. device: DeviceType
  32. collapse: boolean
  33. language: LanguageType
  34. lock: boolean
  35. logo: string
  36. title: string
  37. echartsGraphic1: string[]
  38. echartsGraphic2: string[]
  39. }
  40. declare interface TabsModuleType {
  41. visitedRoutes: VabRouteRecord[]
  42. }
  43. declare interface OptionType {
  44. name?: string
  45. title?: string
  46. meta: VabRouteMeta
  47. }
  48. declare interface UserModuleType {
  49. token: string | boolean
  50. username: string
  51. avatar: string
  52. department: any
  53. id: string
  54. }