proxy.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-09-03 14:28:27
  4. <<<<<<< HEAD
  5. * @LastEditTime: 2022-01-14 10:07:19
  6. =======
  7. * @LastEditTime: 2022-03-04 18:32:02
  8. >>>>>>> master
  9. * @LastEditors: Please set LastEditors
  10. * @Description: In User Settings Edit
  11. * @FilePath: /MedicalWisdomCheckSys/config/proxy.ts
  12. */
  13. /**
  14. * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
  15. * -------------------------------
  16. * The agent cannot take effect in the production environment
  17. * so there is no configuration of the production environment
  18. * For details, please see
  19. * https://pro.ant.design/docs/deploy
  20. */
  21. //118.31.245.65 线上
  22. //112.124.59.133 测试
  23. export default {
  24. dev: {
  25. '/api': {
  26. target: 'http://118.31.245.65:8083/',
  27. changeOrigin: true,
  28. pathRewrite: { '^/api': '' },
  29. },
  30. },
  31. mock: {
  32. '/api/': {
  33. target: 'http://localhost:8000',
  34. changeOrigin: true,
  35. pathRewrite: { '^': '' },
  36. },
  37. },
  38. prod: {
  39. '/api/': {
  40. target: 'https://118.31.245.65:8083/',
  41. changeOrigin: true,
  42. pathRewrite: { '^': '' },
  43. },
  44. },
  45. pre: {
  46. '/api/': {
  47. target: 'your pre url',
  48. changeOrigin: true,
  49. pathRewrite: { '^': '' },
  50. },
  51. },
  52. };