vue.config.js
module.exports = {
devServer: {
proxy: {
"/api": {
target: "http://192.168.0.103:9876",
changOrigin: true,
pathRewrite: {"^/api" : ""}
}
}
}
}
【Vue】新版vue解决跨域问题
猜你喜欢
转载自www.cnblogs.com/jxd283465/p/11615163.html
今日推荐
周排行