包含后厨 团餐 门店分支
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

123 lines
3.0 KiB

  1. /**
  2. * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
  3. * -------------------------------
  4. * The agent cannot take effect in the production environment
  5. * so there is no configuration of the production environment
  6. * For details, please see
  7. * https://pro.ant.design/docs/deploy
  8. */
  9. export default {
  10. dev: {
  11. '/saasbase/': {
  12. target: 'http://localhost:5006/',
  13. changeOrigin: true,
  14. secure: false, //关闭证书验证
  15. pathRewrite: {
  16. '/saasbase/': '',
  17. },
  18. },
  19. '/groupmeal/': {
  20. // target: 'http://10.2.1.26:21995/groupmeal/',
  21. target:'http://localhost:5248/',
  22. changeOrigin: true,
  23. secure: false, //关闭证书验证
  24. pathRewrite: {
  25. '/groupmeal/': '',
  26. },
  27. },
  28. '/groupmealorder/': {
  29. target: 'http://10.2.1.26:21995/groupmealorder/',
  30. changeOrigin: true,
  31. secure: false, //关闭证书验证
  32. pathRewrite: {
  33. '/groupmealorder/': '',
  34. },
  35. },
  36. // '/groupmeal/': {
  37. // target: 'http://10.2.1.26:21995/groupmeal/',
  38. // changeOrigin: true,
  39. // secure: false, //关闭证书验证
  40. // pathRewrite: {
  41. // '/groupmeal/': '',
  42. // },
  43. // },
  44. '/groupmeal/': {
  45. target: 'http://localhost:5298/',
  46. changeOrigin: true,
  47. secure: false, //关闭证书验证
  48. pathRewrite: {
  49. '/groupmeal/': '',
  50. },
  51. },
  52. // Nginx发布的时候需要配置
  53. '/cos/':{
  54. target: 'https://hbl-test-1305371387.cos.ap-chengdu.myqcloud.com',
  55. changeOrigin: true,
  56. secure: false, //关闭证书验证
  57. pathRewrite: {
  58. '/cos/': '/',
  59. },
  60. }
  61. },
  62. test: {
  63. '/api/': {
  64. target: 'http://localhost:5006',
  65. changeOrigin: true,
  66. secure: false,
  67. pathRewrite: {
  68. '^': '',
  69. },
  70. },
  71. },
  72. pre: {
  73. '/api/': {
  74. target: 'http://localhost:5006',
  75. changeOrigin: true,
  76. secure: false,
  77. pathRewrite: {
  78. '^': '',
  79. },
  80. },
  81. },
  82. };
  83. // /**
  84. // * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
  85. // * -------------------------------
  86. // * The agent cannot take effect in the production environment
  87. // * so there is no configuration of the production environment
  88. // * For details, please see
  89. // * https://pro.ant.design/docs/deploy
  90. // */
  91. // export default {
  92. // dev: {
  93. // '/api/': {
  94. // target: 'http://114.117.161.250:7002',
  95. // changeOrigin: true,
  96. // secure: false, //关闭证书验证
  97. // pathRewrite: {
  98. // '^': '',
  99. // },
  100. // },
  101. // },
  102. // test: {
  103. // '/api/': {
  104. // target: 'http://114.117.161.250:7002',
  105. // changeOrigin: true,
  106. // secure: false,
  107. // pathRewrite: {
  108. // '^': '',
  109. // },
  110. // },
  111. // },
  112. // pre: {
  113. // '/api/': {
  114. // target: 'http://114.117.161.250:7002',
  115. // changeOrigin: true,
  116. // secure: false,
  117. // pathRewrite: {
  118. // '^': '',
  119. // },
  120. // },
  121. // },
  122. // };