包含后厨 团餐 门店分支
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

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