proxy.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
  3. * The agent cannot take effect in the production environment
  4. * so there is no configuration of the production environment
  5. * For details, please see
  6. * https://pro.ant.design/docs/deploy
  7. */
  8. export default {
  9. dev: {
  10. '/api/': {
  11. target: 'http://uat.jishutao.com',
  12. changeOrigin: true, //target为域名时设为true
  13. },
  14. '/managesignin':{
  15. target: 'http://uat.jishutao.com',
  16. changeOrigin: true, //target为域名时设为true
  17. },
  18. '/login':{
  19. target: 'http://uat.jishutao.com',
  20. changeOrigin: true, //target为域名时设为true
  21. }
  22. },
  23. // dev: {
  24. // '/api/': {
  25. // target: 'http://172.16.0.188:8080',
  26. // changeOrigin: false, //target为域名时设为true
  27. // },
  28. // '/managesignin':{
  29. // target: 'http://172.16.0.188:8080',
  30. // changeOrigin: false, //target为域名时设为true
  31. // },
  32. // '/login':{
  33. // target: 'http://172.16.0.188:8080',
  34. // changeOrigin: false, //target为域名时设为true
  35. // }
  36. // },
  37. // test: {
  38. // '/api/': {
  39. // target: 'http://uat.jishutao.com',
  40. // changeOrigin: true, //target为域名时设为true
  41. // },
  42. // },
  43. // pre: {
  44. // '/api/': {
  45. // target: 'http://uat.jishutao.com',
  46. // changeOrigin: true,
  47. // },
  48. // },
  49. };