config.ts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /*
  2. * @Author: your name
  3. * @Date: 2022-01-07 10:04:20
  4. * @LastEditTime: 2023-07-10 13:44:38
  5. * @LastEditors: code4eat awesomedema@gmail.com
  6. * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  7. * @FilePath: /KC-MiddlePlatform/config/config.ts
  8. */
  9. import { defineConfig } from 'umi';
  10. import proxy from './proxy';
  11. const { REACT_APP_ENV } = process.env;
  12. export default defineConfig({
  13. nodeModulesTransform: {
  14. type: 'none',
  15. },
  16. title: false,
  17. publicPath: '/',
  18. dva: {
  19. immer: true,
  20. hmr: true,
  21. },
  22. antd: {
  23. config: {
  24. prefixCls: 'kcmp-ant',
  25. // getPopupContainer:(triggerNode:HTMLElement)=>triggerNode
  26. },
  27. },
  28. lessLoader: {
  29. modifyVars: { '@ant-prefix': 'kcmp-ant', 'root-entry-name': 'default' },
  30. },
  31. theme: {
  32. '@primary-color': '#3376FE',
  33. '@primary-color-hover': '#3376FE',
  34. // '@root-entry-name':'root-entry-name'
  35. },
  36. routes: [
  37. {
  38. path: '/',
  39. component: '@/layouts/index.tsx',
  40. routes: [
  41. {
  42. path: '/app1',
  43. microApp: 'app1',
  44. },
  45. // {
  46. // path: '/costMana',
  47. // microApp: 'costMana',
  48. // },
  49. {
  50. path: '/PFMBackC',
  51. microApp: 'PFMBackC',
  52. },
  53. {
  54. path: '/reviewMana',
  55. microApp: 'reviewMana',
  56. },
  57. {
  58. path: '/budgetManaSystem',
  59. microApp: 'budgetManaSystem',
  60. },
  61. {
  62. path: '/channelIndex/channelIndexOne',
  63. component: '@/pages/channelIndex/channelIndexOne/index.tsx',
  64. },
  65. {
  66. path: '/index',
  67. title: '欢迎进入医管平台',
  68. component: '@/pages/index/index.tsx',
  69. },
  70. {
  71. title: '精益管管理中台',
  72. path: '/platform',
  73. component: '@/pages/platform/_layout.tsx',
  74. routes: [
  75. {
  76. path: '/platform/sqlEditer',
  77. component: '@/pages/platform/sqlediter/index.tsx',
  78. },
  79. {
  80. path: '/platform/setting',
  81. routes: [
  82. {
  83. path: '/platform/setting/userManage',
  84. component: '@/pages/platform/setting/userManage/index.tsx',
  85. },
  86. {
  87. path: '/platform/setting/hospManage',
  88. component: '@/pages/platform/setting/hospManage/index.tsx',
  89. },
  90. {
  91. path: '/platform/setting/menuManage',
  92. component: '@/pages/platform/setting/menuManage/index.tsx',
  93. },
  94. {
  95. path: '/platform/setting/roleManage',
  96. component: '@/pages/platform/setting/roleManage/index.tsx',
  97. },
  98. // {
  99. // path: '/platform/setting/reports',
  100. // component: '@/pages/platform/setting/reports/index.tsx',
  101. // },
  102. {
  103. path: '/platform/setting/departmentMana',
  104. component: '@/pages/platform/setting/departmentMana/index.tsx',
  105. },
  106. {
  107. path: '/platform/setting/pubDicTypeMana',
  108. component: '@/pages/platform/setting/pubDicTypeMana/index.tsx',
  109. },
  110. {
  111. path: '/platform/setting/pubDicMana',
  112. component: '@/pages/platform/setting/pubDicMana/index.tsx',
  113. },
  114. {
  115. path: '/platform/setting/indicatorMana',
  116. component: '@/pages/platform/setting/indicatorMana/index.tsx',
  117. },
  118. {
  119. path: '/platform/setting/paramsMana',
  120. component: '@/pages/platform/setting/paramsMana/index.tsx',
  121. },
  122. {
  123. path: '/platform/setting/systemNavMana',
  124. component: '@/pages/platform/setting/systemNavMana/index.tsx',
  125. },
  126. {
  127. path: '/platform/setting/notificationTemplate',
  128. component: '@/pages/platform/setting/notificationTemplate/index.tsx',
  129. },
  130. ]
  131. },
  132. ],
  133. },
  134. {
  135. path: '/personalCenter',
  136. component: '@/pages/personalCenter/index.tsx',
  137. },
  138. { path: '/login', layout: false, component: '@/pages/login/index' },
  139. ],
  140. },
  141. ],
  142. // hash:true,
  143. proxy: proxy[REACT_APP_ENV || 'dev'],
  144. manifest: {
  145. basePath: '/',
  146. },
  147. fastRefresh: {},
  148. layout: {
  149. layout: 'top',
  150. },
  151. // mfsu: {},
  152. qiankun: {
  153. master: {
  154. sandbox: {
  155. // strictStyleIsolation:true,
  156. // // experimentalStyleIsolation: true, // 试验性
  157. },
  158. },
  159. },
  160. });