.umirc.ts 985 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import { defineConfig } from '@umijs/max';
  2. export default defineConfig({
  3. antd: {},
  4. access: {},
  5. model: {},
  6. initialState: {},
  7. request: {},
  8. layout: false,
  9. routes: [
  10. {
  11. path: '/login',
  12. name: '登录',
  13. component: './Login',
  14. layout: false,
  15. },
  16. {
  17. path: '/login/callback',
  18. name: '三方登录回调',
  19. component: './LoginCallback',
  20. layout: false,
  21. },
  22. {
  23. path: '/',
  24. redirect: '/record',
  25. custom: [{
  26. label: '课堂录播', key: '/record'
  27. }]
  28. },
  29. {
  30. path: '/record',
  31. component: './Record',
  32. custom: [{
  33. label: '课堂录播', key: '/record'
  34. }]
  35. },
  36. {
  37. name: '课程播放',
  38. path: '/play',
  39. component: './Play',
  40. custom: [{
  41. label: '课程播放', key: '/play'
  42. }]
  43. },
  44. ],
  45. proxy: {
  46. '/api': {
  47. 'target': 'http://119.45.236.111:8866',
  48. 'changeOrigin': true,
  49. },
  50. },
  51. npmClient: 'pnpm',
  52. });