module.exports = { publicPath: './', devServer: { proxy: { '/api':{ target:"http://8.136.230.133:8080",//这里设置你要访问的域名(或IP+端口) //target:"http://192.168.2.122:8080",//这里设置你要访问的域名(或IP+端口) changeOrigin:true, pathRewrite:{ '^/api': '/' } } } } }