在开发过程中proxyTable突然失效
其他的配置都没动我的IP改变了 但是也改过来了 target指向的地址也可以打开
proxyTable的设置
proxyTable: {
'/wxapi': {
target: 'http://192.168.0.101:9002',
changeOrigin: true,
pathRewrite: {
'^/wxapi': ''
}
}
}
接口请求
axios.post('/wxapi/wx/getMachineMap',qs.stringify({
name:'风管'
})).then( (res)=>{
console.log(res)
})
之前遇到过一次 自己突然就好了 这次突然又失效了