config.d.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. export interface ProjectSettingState {
  2. //导航模式
  3. navMode: string;
  4. //导航风格
  5. navTheme: string;
  6. //顶部设置
  7. headerSetting: object;
  8. //页脚
  9. showFooter: boolean;
  10. //菜单设置
  11. menuSetting: object;
  12. //多标签
  13. multiTabsSetting: object;
  14. //面包屑
  15. crumbsSetting: object;
  16. //权限模式
  17. permissionMode: string;
  18. }
  19. export interface IbodySetting {
  20. fixed: boolean;
  21. }
  22. export interface IheaderSetting {
  23. bgColor: string;
  24. fixed: boolean;
  25. isReload: boolean;
  26. }
  27. export interface ImenuSetting {
  28. minMenuWidth: number;
  29. menuWidth: number;
  30. fixed: boolean;
  31. mixMenu: boolean;
  32. collapsed: boolean;
  33. uniqueOpened: boolean;
  34. }
  35. export interface IcrumbsSetting {
  36. show: boolean;
  37. showIcon: boolean;
  38. }
  39. export interface ImultiTabsSetting {
  40. bgColor: string;
  41. fixed: boolean;
  42. show: boolean;
  43. }
  44. export type NoticeChannelAppConfig = 'lanxin' | 'platform' | 'wecom';
  45. export interface GlobConfig {
  46. // 标题
  47. title: string;
  48. // api 接口前缀
  49. urlPrefix: string;
  50. }
  51. export interface GlobEnvConfig {
  52. // 标题
  53. VITE_GLOB_APP_TITLE: string;
  54. // 接口前缀
  55. VITE_GLOB_API_URL_PREFIX: string;
  56. }
  57. // export interface GlobConfig {
  58. // title: string;
  59. // apiUrl: string;
  60. // shortName: string;
  61. // urlPrefix: string;
  62. // uploadUrl?: string;
  63. // prodMock: boolean;
  64. // imgUrl?: string;
  65. // appDownloadUrl?: string;
  66. // loginApp?: string;
  67. // appPCUrl?: string;
  68. // questionListVersion: string;
  69. // disableDepartmentEdit?: boolean;
  70. // hideReportMessageTabs?: boolean;
  71. // noticeChannel: NoticeChannelAppConfig[];
  72. // }
  73. // export interface GlobEnvConfig {
  74. // // 标题
  75. // VITE_GLOB_APP_TITLE: string;
  76. // // 接口地址
  77. // VITE_GLOB_API_URL: string;
  78. // // 接口前缀
  79. // VITE_GLOB_API_URL_PREFIX?: string;
  80. // // 项目简称
  81. // VITE_GLOB_APP_SHORT_NAME: string;
  82. // // 图片上传地址
  83. // VITE_GLOB_UPLOAD_URL?: string;
  84. // //图片前缀地址
  85. // VITE_GLOB_IMG_URL?: string;
  86. // //生产环境开启mock
  87. // VITE_GLOB_PROD_MOCK: boolean;
  88. // /** 下载app的url */
  89. // VITE_GLOB_APP_DOWNLOAD_QRCODE: string;
  90. // /** 登录地址 */
  91. // VITE_GLOB_LOGIN_APP: string;
  92. // /** 地球模块登录地址 */
  93. // VITE_GLOB_SKYEYE_WORLD: string;
  94. // /** PC模块登录地址 */
  95. // VITE_GLOB_APP_PC: string;
  96. // VITE_GLOB_TENANT_CODE: string;
  97. // VITE_GLOB_QUESTION_LIST_VERSION: string;
  98. // VITE_GLOB_DISABLE_DEPARTMENT_EDIT: boolean;
  99. // // 是否隐藏掉平台违规报警 平台访问统计和人员访问数据的tab, 默认不隐藏
  100. // VITE_GLOB_HIDE_REPORT_MESSAGE_TABS: boolean;
  101. // // 消息管理可选择的推送渠道
  102. // VITE_GLOB_NOTICE_CHANNEL: NoticeChannelAppConfig[];
  103. // }
  104. // export interface GlobConfig {
  105. // // 标题
  106. // title: string;
  107. // // 接口地址
  108. // apiUrl: string;
  109. // // 图片上传地址
  110. // uploadUrl?: string;
  111. // // api 接口前缀
  112. // urlPrefix: string;
  113. // // 项目简称
  114. // shortName: string;
  115. // // 生产环境开启 mock
  116. // prodMock: boolean;
  117. // // 图片访问地址
  118. // imgUrl: string | undefined;
  119. // tenantCode: string;
  120. // minifyImgUrl?: string;
  121. // }