WXL
3 天以前 665ac635d56031ecdbda1d2eed9f63d4c6ab7015
src/views/repositoryai/templateku/configurat/measurement.vue
@@ -155,7 +155,6 @@
      this.timeout = this.$route.query.timeout;
      // 防止用户多次连续点击发起请求,所以要先关闭上次的ws请求。
      closeWebsocket();
      console.log(this.id);
      const obj = {
        type: "text",
        userId: this.userid,
@@ -164,7 +163,7 @@
      };
      // 发起ws请求
      sendWebsocket(
        "ws://192.168.2.10:8095/chat?userId="+this.userid,
        "ws://9.208.2.190:8095/chat?userId="+this.userid,
        obj,
        this.wsMessage,
        this.wsError
@@ -246,7 +245,7 @@
      console.log(obj, "入参");
      // 发起ws请求
      sendWebsocket(
        "ws://192.168.2.10:8095/chat?userId="+this.userid,
        "ws://9.208.2.190:8095/chat?userId="+this.userid,
        obj,
        this.wsMessage,
        this.wsError