config.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /*
  2. * @Author: your name
  3. * @Date: 2022-01-07 10:04:20
  4. * @LastEditTime: 2022-07-07 18:14:23
  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' },
  30. }, //
  31. theme: {
  32. '@primary-color': '#3376FE',
  33. },
  34. routes: [
  35. {
  36. path: '/',
  37. component: '@/layouts/index.tsx',
  38. routes: [
  39. {
  40. path: '/app1',
  41. microApp: 'app1',
  42. },
  43. {
  44. path: '/channelIndex/channelIndexOne',
  45. component: '@/pages/channelIndex/channelIndexOne/index.tsx',
  46. },
  47. {
  48. path: '/index',
  49. title:'欢迎进入医管平台',
  50. component: '@/pages/index/index.tsx',
  51. },
  52. {
  53. title:'精益管管理中台',
  54. path: '/platform',
  55. component: '@/pages/platform/_layout.tsx',
  56. routes: [
  57. {
  58. path: '/platform/sqlEditer',
  59. component: '@/pages/platform/sqlediter/index.tsx',
  60. },
  61. {
  62. path: '/platform/setting/userManage',
  63. component: '@/pages/platform/setting/userManage/index.tsx',
  64. },
  65. {
  66. path: '/platform/setting/hospManage',
  67. component: '@/pages/platform/setting/hospManage/index.tsx',
  68. },
  69. {
  70. path: '/platform/setting/menuManage',
  71. component: '@/pages/platform/setting/menuManage/index.tsx',
  72. },
  73. {
  74. path: '/platform/setting/roleManage',
  75. component: '@/pages/platform/setting/roleManage/index.tsx',
  76. },
  77. {
  78. path: '/platform/setting/reports',
  79. component: '@/pages/platform/setting/reports/index.tsx',
  80. },
  81. ],
  82. },
  83. {
  84. path: '/personalCenter',
  85. component: '@/pages/personalCenter/index.tsx',
  86. },
  87. { path: '/login', layout: false, component: '@/pages/login/index' },
  88. ],
  89. },
  90. ],
  91. proxy: proxy[REACT_APP_ENV || 'dev'],
  92. manifest: {
  93. basePath: '/',
  94. },
  95. fastRefresh: {},
  96. layout: {
  97. layout: 'top',
  98. },
  99. // mfsu: {},
  100. qiankun: {
  101. master: {
  102. sandbox: {
  103. // strictStyleIsolation:true,
  104. // // experimentalStyleIsolation: true, // 试验性
  105. },
  106. },
  107. },
  108. });