.umirc.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. component: './Flow/index',
  36. },
  37. {
  38. name: '权限演示',
  39. path: '/access',
  40. component: './Access',
  41. },
  42. {
  43. name: 'CRUD 示例',
  44. path: '/table',
  45. component: './Table',
  46. },
  47. {
  48. name: '登录',
  49. path: '/login',
  50. component: './Login/index',
  51. layout: false,
  52. },
  53. {
  54. name: '文档管理',
  55. path: '/fileManagement',
  56. component: './FileManagement/index',
  57. },
  58. {
  59. name: '合同管理',
  60. path: '/contract-manager',
  61. component: './ContractManager/index',
  62. layout: false,
  63. },
  64. ],
  65. npmClient: 'yarn',
  66. });