.umirc.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2022-12-14 14:14:32
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2023-02-13 11:12:34
  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. // history:{
  13. // type:'hash'
  14. // },
  15. antd: {
  16. configProvider: {
  17. prefixCls: 'bms-ant',
  18. primaryColor:'#3377FF'
  19. // getPopupContainer:(triggerNode:HTMLElement)=>triggerNode
  20. }
  21. },
  22. qiankun: {
  23. slave: {},
  24. },
  25. lessLoader: {
  26. modifyVars: { '@ant-prefix': 'bms-ant' }
  27. }, //对应修改生成的 antd 样式类名
  28. access: {},
  29. model: {},
  30. initialState: {},
  31. request: {},
  32. layout: {
  33. title: '前瞻性绩效管理',
  34. layout: 'side',
  35. menuProps: {
  36. theme: 'light',
  37. }
  38. },
  39. theme:{
  40. primaryColor:'#3377FF'
  41. },
  42. manifest: {
  43. basePath: '/',
  44. },
  45. publicPath:REACT_APP_ENV == 'dev'?'/':'/perform/',
  46. proxy: {
  47. '/gateway': {
  48. target: 'http://112.124.59.133:5000/gateway',
  49. changeOrigin: true,
  50. // pathRewrite: { '^/gateway': '' },
  51. }
  52. },
  53. routes: [
  54. {
  55. path: '/',
  56. redirect: '/home',
  57. },
  58. {
  59. name: '首页',
  60. path: '/home',
  61. component: './Home',
  62. },
  63. {
  64. name: '绩校管理',
  65. path: '/budgetMana',
  66. routes: [
  67. {
  68. name: '月度结转',
  69. path: '/budgetMana/monthlySet',
  70. component: './budgetMana/monthlySet'
  71. },
  72. {
  73. name: '月度设置信息核对',
  74. path: '/budgetMana/monthlyInfoCheck',
  75. component: './budgetMana/monthlyInfoCheck'
  76. },
  77. {
  78. name: '月度绩效数据核对',
  79. path: '/budgetMana/monthlyDataCheck',
  80. component: './budgetMana/monthlyDataCheck'
  81. },
  82. {
  83. name: '人事薪酬预算',
  84. path: '/budgetMana/personnelSalaryBudget',
  85. component: './budgetMana/personnelSalaryBudget'
  86. },
  87. {
  88. name: '一次分配',
  89. path: '/budgetMana/oneBatch',
  90. component: './budgetMana/oneBatch'
  91. }
  92. ]
  93. }
  94. ],
  95. npmClient: 'yarn',
  96. });