From f7ea0b4ceb05fc15e363d918bff74022efd29d53 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 22 八月 2024 17:36:31 +0800
Subject: [PATCH] onClickOutside

---
 src/components/chat/Chat.vue |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue
index 0b172f2..25f06d7 100644
--- a/src/components/chat/Chat.vue
+++ b/src/components/chat/Chat.vue
@@ -259,23 +259,21 @@
 	processId.value = uuidv4();
 	let judgeParams = null;
 	if (!preQuestion.value) {
-		const aiContent = computedMessageList.value.filter((item) => item.role === RoleEnum.assistant);
-		const lastQuestion = aiContent[aiContent.length - 2]?.content?.origin?.question;
-		judgeParams = lastQuestion
-			? {
-					prev_question: lastQuestion,
-			  }
-			: {};
+		// const aiContent = computedMessageList.value.filter((item) => item.role === RoleEnum.assistant);
+		// const lastQuestion = aiContent[aiContent.length - 2]?.content?.origin?.question;
+		// judgeParams = lastQuestion
+		// 	? {
+		// 			prev_question: lastQuestion,
+		// 	  }
+		// 	: {};
+			// 姝e父鍥炵瓟鏆傛椂涓嶉噰鐢�
+		judgeParams = {};
 	} else {
 		judgeParams = {
 			prev_question: preQuestion.value,
 		};
 	}
-	// const judgeParams = !preQuestion.value
-	// 	? {}
-	// 	: {
-	// 			prev_question: preQuestion.value,
-	// 	  };
+	
 	const params = {
 		process_id: processId.value,
 		question: text,

--
Gitblit v1.9.3