配置如下:
devServer: { // host: "localhost", // port: 8080, proxy: { "/api": { target: 'http://1.85.6.157:8467', // target: "http://192.168.6.44:9001/", changeOrigin: true, overlay: { warnings: false, errors: true }, pathRewrite: { "^/api": "" } } } },
如果这篇文章对您有帮助,您可以打赏我
技术交流QQ群:15129679