.umirc.ts 550 B

123456789101112131415161718192021222324252627282930
  1. import { defineConfig } from '@umijs/max';
  2. export default defineConfig({
  3. antd: {},
  4. access: {},
  5. model: {},
  6. dva: {},
  7. initialState: {},
  8. request: {},
  9. routes: [
  10. {
  11. path: '/',
  12. redirect: '/home',
  13. },
  14. {
  15. name: '首页',
  16. path: '/home',
  17. component: '@/Project/pages/home',
  18. },
  19. ],
  20. npmClient: 'yarn',
  21. proxy: {
  22. '/api': {
  23. // target: 'http://47.96.12.136:8788/',
  24. target: 'http://47.96.12.136:8888/',
  25. // target: 'http://120.55.44.4:8900/',
  26. changeOrigin: true,
  27. },
  28. },
  29. });