.umirc.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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: '权限演示',
  56. path: '/access',
  57. component: './Access',
  58. },
  59. {
  60. name: 'CRUD 示例',
  61. path: '/table',
  62. component: './Table',
  63. },
  64. {
  65. name: '登录',
  66. path: '/login',
  67. component: './Login/index',
  68. layout: false,
  69. },
  70. {
  71. name: '文档管理',
  72. path: '/fileManagement',
  73. component: './FileManagement/index',
  74. },
  75. {
  76. name: '合同管理',
  77. path: '/contract-manager',
  78. component: './ContractManager/index',
  79. },
  80. ],
  81. npmClient: 'yarn',
  82. });