proxy-dev.js 491 B

123456789101112131415
  1. 'use strict'
  2. // 跨域请求设置,可配置多个
  3. module.exports = {
  4. table: {
  5. '/': {
  6. target: 'http://172.16.120.104:8083',
  7. ws: true, // 代理websockets
  8. changeOrigin: true,
  9. pathRewrite: { '': '/' } // '^/api' 是一个正则表达式,作用:将 /api 提换成为 /
  10. },
  11. },
  12. // 本地配置ip访问(手机可通过IP访问),需要修改成本地Ip地址
  13. localhost: '172.16.120.200',
  14. port: '3000',
  15. }