Vue开发模式跨域解决与代理服务器配置
vue.config.js
module.exports = {
devServer:{
proxy:{
'/api':{
target:"http://fwxlove.club/",
pathRewrite:{
'^/api':""
}
}
}
}
}