vue.config.js 278 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 module.exports = { devServer: { port: 8080, // 端口 proxy: { //配置跨域 "/api": { target: "http://192.168.2.24:7001", // ws:true, changOrigin: true, pathRewrite: { "^/api": "/" } } } } };