devServer: { port: 80, proxy: { '/api': { target: `http://xxx.com`,// 需要代理到的地址 changeOrigin: true, ws: true, pathRewrite: { '^/api': '/api' } } } , disableHostCheck: true, }