proxy.js 342 B

123456789101112131415
  1. // 宝安
  2. const DEFAULT_ADDRESS = 'http://192.168.50.88'
  3. // const DEFAULT_ADDRESS = 'http://shengfurj.cn'
  4. // 福田
  5. // const DEFAULT_ADDRESS = 'http://192.168.80.32'
  6. export default {
  7. '/api': {
  8. target: 'http://192.168.50.88:1050',
  9. changeOrigin: true,
  10. ws: true,
  11. rewrite: path => path.replace(new RegExp('^/api'), "")
  12. },
  13. }