From 0c26cb58f143c56f3753f4745519502222cde4ff Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 01 十一月 2024 18:42:35 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/templateku/configurat/measurement.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/repositoryai/templateku/configurat/measurement.vue b/src/views/repositoryai/templateku/configurat/measurement.vue index e9aca3d..7af839f 100644 --- a/src/views/repositoryai/templateku/configurat/measurement.vue +++ b/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 @@ -187,6 +189,10 @@ this.sendFn(); // 鍚庤皟鐢� } }, this.timeout * 1000); + if (condition) { + + } + // clearTimeout(timerId) // 浼樺厛鍔犲叆閫氱敤搴撳尮閰嶆枃鏈� if (dataJson.nowQuestion.submoduleText) { this.Answerline.push({ @@ -230,14 +236,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.userid, obj, this.wsMessage, this.wsError @@ -284,7 +290,7 @@ overflow: auto; .leftside { margin-bottom: 30px; - width: 600px; + max-width: 566px; margin-left: 20px; padding: 10px; color: #fff; -- Gitblit v1.9.3