.umirc.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2022-12-14 14:14:32
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2023-09-27 11:08:19
  6. * @FilePath: /BudgetManaSystem/.umirc.ts
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. import { defineConfig } from '@umijs/max';
  10. const { REACT_APP_ENV } = process.env;
  11. export default defineConfig({
  12. antd: {
  13. configProvider: {
  14. prefixCls: 'pfm-ant',
  15. },
  16. },
  17. qiankun: {
  18. slave: {},
  19. },
  20. mfsu:false,
  21. lessLoader: {
  22. modifyVars: {
  23. '@ant-prefix': 'pfm-ant',
  24. '@primary-color': '#3377FF',
  25. '@border-color-base':'#dae2f2'
  26. },
  27. javascriptEnabled: true,
  28. }, //对应修改生成的 antd 样式类名
  29. access: {},
  30. model: {},
  31. initialState: {},
  32. request: {},
  33. layout: {
  34. title: '追踪方法学后台管理',
  35. layout: 'side',
  36. menuProps: {
  37. theme: 'light',
  38. }
  39. },
  40. manifest: {
  41. basePath: '/',
  42. },
  43. publicPath: REACT_APP_ENV == 'dev' ? '/' : '/pfmManager/',
  44. proxy: {
  45. '/gateway': {
  46. target: 'http://120.27.235.181:5000/gateway',//开发
  47. //target:'http://47.96.149.190:5000/gateway', //演示
  48. changeOrigin: true,
  49. // pathRewrite: { '^/gateway': '' },
  50. }
  51. },
  52. routes: [
  53. {
  54. path: '/',
  55. redirect: '/home',
  56. },
  57. {
  58. name: '首页',
  59. path: '/home',
  60. component: './Home',
  61. },
  62. {
  63. name: '通用设置',
  64. path: '/setting',
  65. routes:[
  66. {
  67. name: '定性选项管理',
  68. path: '/setting/qualitativeOptionsMana',
  69. component:'./setting/qualitativeOptionsMana'
  70. },
  71. {
  72. name: '分页模板管理',
  73. path: '/setting/fenyeTemplate',
  74. component:'./setting/fenyeTemplate'
  75. }
  76. ]
  77. },
  78. ],
  79. npmClient: 'yarn',
  80. });