.umirc.ts 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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',
  30. },
  31. {
  32. name: '流程图管理',
  33. path: '/flow',
  34. component: './Flow/index',
  35. },
  36. {
  37. name: '权限演示',
  38. path: '/access',
  39. component: './Access',
  40. },
  41. {
  42. name: ' CRUD 示例',
  43. path: '/table',
  44. component: './Table',
  45. },
  46. ],
  47. npmClient: 'yarn',
  48. });