'use strict' // 跨域请求设置,可配置多个 module.exports = { table: { '/': { //target: 'http://101.133.214.75:81/api', //target: 'http://101.133.214.75', // target: 'http://172.200.50.17:8083', //target: 'http://120.55.70.156/api', //target: 'http://172.16.120.104:8083', //本地 target: 'http://32.0.15.107:8080/api/', //闵行 //target: 'http://172.200.50.85:8080/api/', //闵行杨强 ws: true, // 代理websockets changeOrigin: true, pathRewrite: { '': '/' } // '^/api' 是一个正则表达式,作用:将 /api 提换成为 / }, }, // 本地配置ip访问(手机可通过IP访问),需要修改成本地Ip地址 // localhost: '172.200.50.18', localhost: '172.16.120.200', port: '3000', }