ZZJ
2022-07-11 6ef2ac92c0d3f79b59b8698274918df830b58b29
vue.config.js
@@ -12,48 +12,36 @@
    // https: false,
    // hotOnly: false, // 热更新
    proxy: {
      "/track": {
        //target: 'http://bsic.asuscomm.com:7003',
        // target: 'http://222.128.87.51:8000',
        target: "http://192.168.20.10:7004",
        // ws: true,
        changeOrigin: true,
      },
      "/ws": {
        //target: 'http://bsic.asuscomm.com:7004',
        // target: 'http://222.128.87.51:7003',
        target: "http://192.168.20.10:7004",
        // ws: true,
        changeOrigin: true,
      },
      "/api-v": {
        //target: 'http://192.168.20.145:8000',
        // target: "http://192.168.20.230:8000",
        target: "http://192.168.20.189:7009",
        changeOrigin: true,
      },
      "/api": {
        //  target: "http://192.168.20.230:7004",
        // target: "http://192.168.20.10:7004",
        target: "http://192.168.20.117:7080",
        // target: "http://192.168.20.174:7070",
        target: "http://192.168.20.115:7070",
        //  target: "http://192.168.20.117:7080",
        // secure: false,
        changeOrigin: true,
      },
      "/httpImage": {
        //target: "http://bsic.asuscomm.com:7003",
        // target: "http://222.128.87.51:7003",
        //  target: "http://192.168.20.10:7009",
        target: "http://192.168.20.189:7009",
        // target: "http://192.168.20.117:7080",
        // target: "http://192.168.20.10:7009",
        // target: "http://192.168.20.189:7009",
        target: "http://192.168.20.115:7070",
        changeOrigin: true, //开启代理
      },
      "/files": {
        //target: "http://bsic.asuscomm.com:7003",
        // target: "http://222.128.87.51:7003",
        target: "http://192.168.20.10:7004",
        changeOrigin: true, //开启代理
      "/ws": {
        target: "http://192.168.20.115:7070",
        // ws: true,
        changeOrigin: true,
      },
      /*
      "/api-v": {
        target: "http://192.168.20.10:7009",
        // ws: true,
        changeOrigin: true,
      }, */
    },
  },
};