.umirc.ts 892 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { defineConfig } from 'umi';
  2. export default defineConfig({
  3. nodeModulesTransform: {
  4. type: 'none',
  5. },
  6. routes: [
  7. {
  8. path: '/',
  9. component: '../layouts/index',
  10. routes: [
  11. { path: '/', component: '../pages/index' },
  12. { path: '/vip', component: '../pages/vip' },
  13. { path: '/login', component: '../pages/login' },
  14. { path: '/recharge', component: '../pages/recharge' },
  15. {
  16. path: '/recharge/callback/alipay',
  17. component: '../pages/recharge/callback/alipay',
  18. },
  19. {
  20. path: '/recharge/callback/wechat',
  21. component: '../pages/recharge/callback/wechat',
  22. },
  23. ],
  24. },
  25. ],
  26. fastRefresh: {},
  27. proxy: {
  28. '/api-app': {
  29. target: 'http://api.timichat.net/api-app/',
  30. changeOrigin: true,
  31. pathRewrite: { '^/api-app': '' },
  32. },
  33. },
  34. hash: true,
  35. });