WXL
2024-11-01 9a9bd5273a0a5885834ee80dcb7fdd69013450b0
src/views/repositoryai/templateku/configurat/measurement.vue
@@ -122,6 +122,8 @@
  created() {
    this.TemplateName = this.$route.query.name;
    this.userid = store.getters.Id;
    console.log(store.getters.Id,'11');
    this.requstWs(); //进入页面创建连接
  },
  mounted() {
@@ -162,7 +164,7 @@
      };
      // 发起ws请求
      sendWebsocket(
        "ws://192.168.2.10:8095/chat?userId="+this.userId,
        "ws://192.168.2.13:8095/chat?userId="+this.userid,
        obj,
        this.wsMessage,
        this.wsError
@@ -230,14 +232,14 @@
      // 消息发送
      const obj = {
        type: "text",
        userId: this.userId,
        userId: this.userid,
        templateId: "",
        questionMessage: { content: this.answer },
      };
      console.log(obj, "入参");
      // 发起ws请求
      sendWebsocket(
        "ws://192.168.2.10:8095/chat?userId="+this.userId,
        "ws://192.168.2.13:8095/chat?userId="+this.userids,
        obj,
        this.wsMessage,
        this.wsError
@@ -284,7 +286,7 @@
  overflow: auto;
  .leftside {
    margin-bottom: 30px;
    width: 600px;
    max-width: 566px;
    margin-left: 20px;
    padding: 10px;
    color: #fff;