包含后厨 团餐 门店分支
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.

proxy.js 2.5 KiB

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