WXL
2024-12-31 b1d81d016019a2c59e445dd6752c9134e184c8c4
src/views/repositoryai/templateku/configurat/measurement.vue
@@ -164,7 +164,7 @@
      };
      // 发起ws请求
      sendWebsocket(
        "ws://192.168.2.13:8095/chat?userId="+this.userid,
        "ws://9.208.2.190:8095/chat?userId="+this.userid,
        obj,
        this.wsMessage,
        this.wsError
@@ -184,15 +184,9 @@
      //     isEat: 1,
      //   });
      // }
      timerId = setTimeout(() => {
        if (!this.answer) {
          this.sendFn(); // 后调用
        }
      }, this.timeout * 1000);
      if (condition) {
      }
      // clearTimeout(timerId)
      // 优先加入通用库匹配文本
      if (dataJson.nowQuestion.submoduleText) {
        this.Answerline.push({
@@ -221,6 +215,15 @@
        });
        return item;
      });
      if (!dataJson.jsy) {
        timerId = setTimeout(() => {
          if (!this.answer) {
            this.sendFn(); // 后调用
          }
        }, this.timeout * 1000);
      }else{
        clearTimeout(timerId)
      }
      console.log(this.questionList);
      // IMUI.appendMessage(data);
@@ -243,7 +246,7 @@
      console.log(obj, "入参");
      // 发起ws请求
      sendWebsocket(
        "ws://192.168.2.13:8095/chat?userId="+this.userid,
        "ws://9.208.2.190:8095/chat?userId="+this.userid,
        obj,
        this.wsMessage,
        this.wsError