From 8ec0ecf641b2a46fed9f1eb6ceb4e950678e7804 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期日, 07 四月 2024 11:28:49 +0800
Subject: [PATCH] 测试完成
---
src/views/repositoryai/templateku/configurat/measurement.vue | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/views/repositoryai/templateku/configurat/measurement.vue b/src/views/repositoryai/templateku/configurat/measurement.vue
index 7aa74d3..10f2cc5 100644
--- a/src/views/repositoryai/templateku/configurat/measurement.vue
+++ b/src/views/repositoryai/templateku/configurat/measurement.vue
@@ -129,7 +129,7 @@
};
// 鍙戣捣ws璇锋眰
sendWebsocket(
- "ws://192.168.2.8:8089/chat?userId=1",
+ "ws://localhost:8089/chat?userId=1",
obj,
this.wsMessage,
this.wsError
@@ -156,14 +156,14 @@
});
}
// 鏄惁缁撴潫
- if (!dataJson.jsy) {
- this.Answerline.push({
- value: dataJson.nowQuestion.questionText,
- isEat: 1,
- });
- } else {
+ if (dataJson.jsy) {
this.Answerline.push({
value: dataJson.jsy,
+ isEat: 1,
+ });
+ } else if (dataJson.nowQuestion.questionText) {
+ this.Answerline.push({
+ value: dataJson.nowQuestion.questionText,
isEat: 1,
});
}
@@ -195,7 +195,7 @@
console.log(obj, "鍏ュ弬");
// 鍙戣捣ws璇锋眰
sendWebsocket(
- "ws://192.168.2.8:8089/chat?userId=1",
+ "ws://localhost:8089/chat?userId=1",
obj,
this.wsMessage,
this.wsError
--
Gitblit v1.9.3