From 91f78c7a3c325b7627f269524cdf92f006948cdf Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 20 十月 2025 17:37:35 +0800
Subject: [PATCH] 景宁电话接入
---
src/views/repositoryai/templateku/configurat/measurement.vue | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/src/views/repositoryai/templateku/configurat/measurement.vue b/src/views/repositoryai/templateku/configurat/measurement.vue
index 7af839f..85a1685 100644
--- a/src/views/repositoryai/templateku/configurat/measurement.vue
+++ b/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.13:8095/chat?userId="+this.userid,
+ "ws://9.208.2.190:8095/chat?userId="+this.userid,
obj,
this.wsMessage,
this.wsError
@@ -184,15 +183,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 +214,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 +245,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
--
Gitblit v1.9.3