From bf6643a35299f19ae9147864e6f3b6b4670da98a Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期六, 09 十一月 2024 11:42:59 +0800 Subject: [PATCH] 测试完成 --- src/views/repositoryai/templateku/configurat/measurement.vue | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/views/repositoryai/templateku/configurat/measurement.vue b/src/views/repositoryai/templateku/configurat/measurement.vue index a1b07bd..b48369b 100644 --- a/src/views/repositoryai/templateku/configurat/measurement.vue +++ b/src/views/repositoryai/templateku/configurat/measurement.vue @@ -164,7 +164,7 @@ }; // 鍙戣捣ws璇锋眰 sendWebsocket( - "ws://192.168.2.13:8095/chat?userId="+this.userid, + "ws://192.168.2.10:8095/chat?userId="+this.userid, obj, this.wsMessage, this.wsError @@ -184,11 +184,9 @@ // isEat: 1, // }); // } - timerId = setTimeout(() => { - if (!this.answer) { - this.sendFn(); // 鍚庤皟鐢� - } - }, this.timeout * 1000); + + + // 浼樺厛鍔犲叆閫氱敤搴撳尮閰嶆枃鏈� if (dataJson.nowQuestion.submoduleText) { this.Answerline.push({ @@ -217,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); @@ -239,7 +246,7 @@ console.log(obj, "鍏ュ弬"); // 鍙戣捣ws璇锋眰 sendWebsocket( - "ws://192.168.2.13:8095/chat?userId="+this.userids, + "ws://192.168.2.10:8095/chat?userId="+this.userid, obj, this.wsMessage, this.wsError -- Gitblit v1.9.3