From baba739c537b153b9426746374691afcd90a8c47 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期二, 07 一月 2025 15:35:14 +0800
Subject: [PATCH] 停止生成

---
 src/components/chat/messageList/index.vue |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/components/chat/messageList/index.vue b/src/components/chat/messageList/index.vue
index c5c5a91..6137d7f 100644
--- a/src/components/chat/messageList/index.vue
+++ b/src/components/chat/messageList/index.vue
@@ -15,6 +15,7 @@
 				:isLast="msgIndex === msgList.length - 1"
 				@sendChatMessage="sendChatMessage"
 				@shareMsg="shareClick"
+				@stopGenClick="stopGenClick"
 				:isTalking="isTalking"
 			/>
 		</div>
@@ -57,6 +58,7 @@
 	setCommonQuestionClick: (msg: ChatMessage) => true,
 	sendChatMessage: (msg: ChatContent) => true,
 	askMoreClick: (msg: ContextHistory) => true,
+	stopGenClick: () => true,
 });
 const showAskMore = computed(() => {
 	if (!props.msgList || props.msgList.length === 0) return false;
@@ -80,5 +82,9 @@
 const askMoreClick = (msg: ContextHistory) => {
 	emit('askMoreClick', msg);
 };
+
+const stopGenClick = () => {
+	emit('stopGenClick');
+};
 </script>
 <style scoped lang="scss"></style>

--
Gitblit v1.9.3