this.axios.post('help/liushui').then((response) => {
console.log(response)
}).catch((response) => {
console.log(response)
})
这么请求的出错了
config/index.js
proxyTable: {
'/apidomain': {
target: 'http://www.xxx.com', // 或ip或域名。
changeOrigin: true,
pathRewrite: {
'^/apidomain': ''
}
}
}
报这个错误了
POST http://localhost:8080/help/liushui 404 (Not Found)
跨域问题可参考:https://segmentfault.com/a/11...