config.ts 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. /*
  2. * @Author: your name
  3. * @Date: 2022-01-07 10:04:20
  4. * @LastEditTime: 2023-12-07 10:49:07
  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. // access: 'canVisitThisApp'
  45. microAppProps: {
  46. autoSetLoading: true,
  47. autoCaptureError: true,
  48. },
  49. },
  50. // {
  51. // path: '/costMana',
  52. // microApp: 'costMana',
  53. // },
  54. {
  55. path: '/PFMBackC',
  56. microApp: 'PFMBackC',
  57. microAppProps: {
  58. autoSetLoading: true,
  59. autoCaptureError: true,
  60. },
  61. },
  62. {
  63. path: '/reviewMana',
  64. microApp: 'reviewMana',
  65. microAppProps: {
  66. autoSetLoading: true,
  67. autoCaptureError: true,
  68. },
  69. },
  70. {
  71. path: '/budgetManaSystem',
  72. microApp: 'budgetManaSystem',
  73. microAppProps: {
  74. autoSetLoading: true,
  75. autoCaptureError: true,
  76. },
  77. // wrappers: [
  78. // '@/wrappers/auth',
  79. // ],
  80. },
  81. {
  82. path: '/pfmBackMana',
  83. microApp: 'pfmBackMana',
  84. microAppProps: {
  85. autoSetLoading: true,
  86. autoCaptureError: true,
  87. },
  88. },
  89. {
  90. path: '/CostAccountingSys',
  91. microApp: 'CostAccountingSys',
  92. microAppProps: {
  93. autoCaptureError: true,
  94. //loader: (loading:boolean) => <div>loading</div>,
  95. },
  96. // access: 'canVisitThisApp'
  97. },
  98. {
  99. path: '/devServer',
  100. microApp: 'devServer',
  101. microAppProps: {
  102. autoCaptureError: true,
  103. //loader: (loading:boolean) => <div>loading</div>,
  104. },
  105. // access: 'canVisitThisApp'
  106. },
  107. {
  108. path: '/personnelManaSystem',
  109. microApp: 'personnelManaSystem',
  110. microAppProps: {
  111. autoCaptureError: true,
  112. //loader: (loading:boolean) => <div>loading</div>,
  113. },
  114. // access: 'canVisitThisApp'
  115. },
  116. {
  117. path: '/channelIndex/channelIndexOne',
  118. component: '@/pages/channelIndex/channelIndexOne/index.tsx',
  119. },
  120. {
  121. path: '/index',
  122. title: '欢迎进入医管平台',
  123. component: '@/pages/index/index.tsx',
  124. },
  125. {
  126. title: '精益管管理中台',
  127. path: '/platform',
  128. component: '@/pages/platform/_layout.tsx',
  129. routes: [
  130. {
  131. path: '/platform/sqlEditer',
  132. component: '@/pages/platform/sqlediter/index.tsx',
  133. },
  134. {
  135. path: '/platform/setting',
  136. routes: [
  137. {
  138. path: '/platform/setting/userManage',
  139. component: '@/pages/platform/setting/userManage/index.tsx',
  140. },
  141. {
  142. path: '/platform/setting/hospManage',
  143. component: '@/pages/platform/setting/hospManage/index.tsx',
  144. },
  145. {
  146. path: '/platform/setting/menuManage',
  147. component: '@/pages/platform/setting/menuManage/index.tsx',
  148. },
  149. {
  150. path: '/platform/setting/roleManage',
  151. component: '@/pages/platform/setting/roleManage/index.tsx',
  152. },
  153. // {
  154. // path: '/platform/setting/reports',
  155. // component: '@/pages/platform/setting/reports/index.tsx',
  156. // },
  157. {
  158. path: '/platform/setting/departmentMana',
  159. component: '@/pages/platform/setting/departmentMana/index.tsx',
  160. },
  161. {
  162. path: '/platform/setting/pubDicTypeMana',
  163. component: '@/pages/platform/setting/pubDicTypeMana/index.tsx',
  164. },
  165. {
  166. path: '/platform/setting/hospParamsMana',
  167. component: '@/pages/platform/setting/hospParamsMana/index.tsx',
  168. },
  169. {
  170. path: '/platform/setting/pubDicMana/:type',
  171. component: '@/pages/platform/setting/pubDicMana/index.tsx',
  172. },
  173. {
  174. path: '/platform/setting/indicatorMana',
  175. component: '@/pages/platform/setting/indicatorMana/index.tsx',
  176. },
  177. {
  178. path: '/platform/setting/paramsMana',
  179. component: '@/pages/platform/setting/paramsMana/index.tsx',
  180. },
  181. {
  182. path: '/platform/setting/systemNavMana',
  183. component: '@/pages/platform/setting/systemNavMana/index.tsx',
  184. },
  185. {
  186. path: '/platform/setting/notificationTemplate',
  187. component: '@/pages/platform/setting/notificationTemplate/index.tsx',
  188. },
  189. {
  190. path: '/platform/setting/kcClassification',
  191. component: '@/pages/platform/setting/kcClassification/index.tsx',
  192. },
  193. ],
  194. },
  195. ],
  196. },
  197. {
  198. path: '/personalCenter',
  199. component: '@/pages/personalCenter/index.tsx',
  200. },
  201. { path: '/login', layout: false, component: '@/pages/login/index' },
  202. ],
  203. },
  204. ],
  205. // hash:true,
  206. proxy: proxy[REACT_APP_ENV || 'dev'],
  207. manifest: {
  208. basePath: '/',
  209. },
  210. fastRefresh: {},
  211. layout: {
  212. layout: 'top',
  213. },
  214. // mfsu: {},
  215. qiankun: {
  216. master: {
  217. sandbox: {
  218. // strictStyleIsolation:true,
  219. // // experimentalStyleIsolation: true, // 试验性
  220. },
  221. },
  222. },
  223. });