devServer: {publicPath: process.env.NODE_ENV === 'production'? '/production-sub-path/': '/',proxy: {//可以配置多个代理'/api': {target: 'http://192.168.0.201:9994',changeOrigin: true,ws: true,pathRewrite: {'^/api': ''}},'/images': {target: '',changeOrigin: true,ws: true,pathRewrite: {'^/images': ''}}}},
如果觉得《Vue解决跨域多个target问题(配置多个代理问题)》对你有帮助,请点赞、收藏,并留下你的观点哦!