store.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * @FilePath: store.d.ts
  3. * @Author: 旭颖
  4. * @Date: 2022-10-31 14:56:49
  5. * @LastEditors: liangxvying 1615026511@qq.com
  6. * @LastEditTime: 2024-12-09 16:49:19
  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. name: string
  52. avatar: string
  53. id: number
  54. type: number
  55. factories: Arrary
  56. shop_id: number
  57. supplier_id: number
  58. }