1.vue.config.js
module.exports = {
devServer: {
proxy: {
'/v1': {
target: 'https://wx.ibaodashi.com/test' // 请求接口的url
}
}
},
parallel: false,
lintOnSave: true
}
1.vue.config.js
module.exports = {
devServer: {
proxy: {
'/v1': {
target: 'https://wx.ibaodashi.com/test' // 请求接口的url
}
}
},
parallel: false,
lintOnSave: true
}
本文标题:vue 配置跨域
本文链接:https://www.haomeiwen.com/subject/owhnphtx.html
网友评论