// 设置vue脚手架一些相关的配置
module.exports = {
devServer: {
proxy: {
'/api': {
target: 'http://localhost:7788',
ws: true,
changeOrigin: true,
pathRewrite:{
'^/api':''
}
}
}
}
}
proxy反向代理拦截
最新推荐文章于 2024-08-09 10:42:44 发布