我要請(qǐng)求的 地址是 http://192.168.2.125:8080/WX/user/WXRegister我配置的 Proxytable 如下proxyTable:{ '/api': {
target:'http://192.168.2.125:8080',
changeOrigin:true,
pathRewrite: { '^/api': ''
}
}},我請(qǐng)求的 axios 如下this.axios({ method:'post',
url:'/api/WX/user/WXRegister',
data:{
...obj,
sign:getSign(obj)}}).then(res=>{console.log(res,'有數(shù)據(jù)嗎')})然后 網(wǎng)頁(yè)報(bào)如下錯(cuò)誤POST http://localhost:8080/api/WX/user/WXRegister 504 (Gateway Timeout)5.控制臺(tái)報(bào) 如下錯(cuò)誤[HPM] Error occurred while trying to proxy request /WX/user/WXRegister from localhost:8080 to http://192.168.2.125:8080 (ECONNREFUSED) (https://nodejs.org/api/errors...求教!!
添加回答
舉報(bào)
0/150
提交
取消