我要請求的 地址是 http://192.168.2.125:8080/WX/user/WXRegister我配置的 Proxytable 如下proxyTable:{ '/api': {
target:'http://192.168.2.125:8080',
changeOrigin:true,
pathRewrite: { '^/api': ''
}
}},我請求的 axios 如下this.axios({ method:'post',
url:'/api/WX/user/WXRegister',
data:{
...obj,
sign:getSign(obj)}}).then(res=>{console.log(res,'有數據嗎')})然后 網頁報如下錯誤POST http://localhost:8080/api/WX/user/WXRegister 504 (Gateway Timeout)5.控制臺報 如下錯誤[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...求教!!
添加回答
舉報
0/150
提交
取消