ZZJ
2021-12-13 bc630b555653be1cb6eff37ab2da18cd31e8ef81
vue.config.js
@@ -40,9 +40,13 @@
  // }
});
// const serverUrl = "http://58.118.225.79:41243" // 羊五
const serverUrl = "http://192.168.20.189:7009";
//const serverUrl = "http://192.168.20.10:9000";
const serverUrl = "http://192.168.20.189:7009"; // 羊五
//  const serverUrl = "http://192.168.8.10:7009";
const serverUrl2 = "http://192.168.8.10:9000";
// const serverUrl = "http://192.168.20.10:7009";
// const serverUrl2 = "http://192.168.20.10:9000";
// const cir = require("circular-dependency-plugin");
module.exports = {
  pages,
@@ -125,15 +129,23 @@
        target: serverUrl,
        changeOrigin: true, //开启代理
      },
      "/temp": {
        target: "http://192.168.20.10:9000",
      "/iotdata": {
        target: serverUrl2,
        changeOrigin: true, //开启代理,
        pathRewrite: {
          "/temp": "",
        },
      },
    },
  },
  // configureWebpack: {
  //   plugins: [
  //     new cir({
  //       exclude: /a\.js|node_modules/,
  //       include: /dir/,
  //       failOnError: true,
  //       allowAsyncCycles: false,
  //       cwd: process.cwd(),
  //     }),
  //   ],
  // },
  /* css:{
    loaderOptions:{
      scss:{