不知道怎么回事,这里的代码好像起不了作用。
来源:7-3 异步操作 Promise

慕的地3200337
2020-03-25
写回答
1回答
-
慕粉1926294646
2020-03-25
可以参考vue-cli官网的做法:module.exports = {
devServer: {
proxy: {
'/api': {
target: '<url>',
ws: true,
changeOrigin: true
},
'/foo': {
target: '<other_url>'
}
}
}}212020-11-23
相似问题