From 063a460cbfbad75b78894f0e22689eb15c049a25 Mon Sep 17 00:00:00 2001
From: yangyin <1850366751@qq.com>
Date: 星期一, 04 十一月 2024 11:18:32 +0800
Subject: [PATCH] 删除多余的内容

---
 src/components/chat/Chat.vue |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue
index 398f531..2de9848 100644
--- a/src/components/chat/Chat.vue
+++ b/src/components/chat/Chat.vue
@@ -23,9 +23,8 @@
 						/>
 						<div class="flex-auto flex" :class="{ 'justify-end': item.role === RoleEnum.user }">
 							<div class="inline-flex flex-col" :class="{ 'w-full': item.role === RoleEnum.assistant }">
-								<div  class="w-full" v-if="isTalking && index === computedMessageList.length - 1">
-									<div class="text-sm rounded-[6px] p-4 leading-relaxed bg-white"
-										 v-if="item.role === RoleEnum.assistant">
+								<div class="w-full" v-if="isTalking && index === computedMessageList.length - 1">
+									<div class="text-sm rounded-[6px] p-4 leading-relaxed bg-white" v-if="item.role === RoleEnum.assistant">
 										<!-- 杩囩▼杈撳嚭 -->
 										<el-steps direction="vertical" :active="activeStep">
 											<!-- <el-step title="process" status="process" />
@@ -544,7 +543,6 @@
 		currentIndex.value = (currentIndex.value + history_data.value.length - 1) % history_data.value.length;
 	}
 	messageContent.value.values = history_data.value[currentIndex.value].content.values;
-	scrollToBottom();
 };
 //鏄剧ず涓嬩竴鏉℃秷鎭�
 const showDownChatClick = () => {
@@ -555,7 +553,6 @@
 		currentIndex.value = (currentIndex.value + 1) % history_data.value.length;
 	}
 	messageContent.value.values = history_data.value[currentIndex.value].content.values;
-	scrollToBottom();
 };
 //#endregion
 const {

--
Gitblit v1.9.3