.umirc.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import { defineConfig } from '@umijs/max';
  2. export default defineConfig({
  3. antd: {},
  4. dva: {},
  5. access: {},
  6. model: {},
  7. initialState: {},
  8. request: {},
  9. layout: {
  10. title: '金科环境数字化平台',
  11. locale: false,
  12. },
  13. proxy: {
  14. '/api': {
  15. // target: 'http://47.96.12.136:8788/',
  16. target: 'http://47.96.12.136:8888/',
  17. // target: 'http://120.55.44.4:8900/',
  18. changeOrigin: true,
  19. },
  20. },
  21. routes: [
  22. {
  23. path: '/',
  24. redirect: '/home',
  25. },
  26. {
  27. name: '首页',
  28. path: '/home',
  29. component: './Home/index',
  30. layout: false,
  31. },
  32. {
  33. name: '流程图管理',
  34. path: '/flow',
  35. hideChildrenInMenu: true,
  36. routes: [
  37. {
  38. path: '/flow',
  39. redirect: '/flow/list',
  40. },
  41. {
  42. name: '流程图列表',
  43. path: '/flow/list',
  44. component: './Flow/index',
  45. },
  46. {
  47. name: '流程图详情',
  48. path: '/flow/audit',
  49. component: './Flow/Audit',
  50. hideInMenu: true,
  51. },
  52. ],
  53. },
  54. {
  55. name: 'OA审批',
  56. path: '/oa',
  57. component: './Flow/Oa',
  58. },
  59. {
  60. name: '权限演示',
  61. path: '/access',
  62. component: './Access',
  63. },
  64. {
  65. name: 'CRUD 示例',
  66. path: '/table',
  67. component: './Table',
  68. },
  69. {
  70. name: '登录',
  71. path: '/login',
  72. component: './Login/index',
  73. layout: false,
  74. },
  75. {
  76. name: '文档管理',
  77. path: '/fileManagement',
  78. component: './FileManagement/index',
  79. },
  80. {
  81. name: '合同管理',
  82. path: '/contract-manager',
  83. component: './ContractManager/index',
  84. },
  85. {
  86. name: '授权管理',
  87. path: '/permission',
  88. routes: [
  89. {
  90. name: '菜单授权',
  91. path: '/permission/menu',
  92. component: './Permission/menu',
  93. },
  94. {
  95. name: '文档管理',
  96. path: '/permission/file',
  97. component: './Permission/file',
  98. },
  99. ],
  100. },
  101. ],
  102. npmClient: 'yarn',
  103. });