.umirc.ts 994 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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: '@umijs/max',
  11. },
  12. proxy: {
  13. '/api': {
  14. // target: 'http://47.96.12.136:8788/',
  15. target: 'http://47.96.12.136:8888/',
  16. // target: 'http://120.55.44.4:8900/',
  17. changeOrigin: true,
  18. },
  19. },
  20. routes: [
  21. {
  22. path: '/',
  23. redirect: '/home',
  24. },
  25. {
  26. name: '首页',
  27. path: '/home',
  28. component: './Flow/index',
  29. },
  30. {
  31. name: '权限演示',
  32. path: '/access',
  33. component: './Access',
  34. },
  35. {
  36. name: 'CRUD 示例',
  37. path: '/table',
  38. component: './Table',
  39. },
  40. {
  41. name: '登录',
  42. path: '/login',
  43. component: './Login/index',
  44. layout: false,
  45. },
  46. {
  47. name: '文档管理',
  48. path: '/fileManagement',
  49. component: './FileManagement/index',
  50. },
  51. ],
  52. npmClient: 'yarn',
  53. });