From f9831b4c716eaa858353a5a1a5ba340f3b9c92ec Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 04 十一月 2024 17:41:13 +0800 Subject: [PATCH] 步骤 loading 动画 --- src/components/chat/Chat.vue | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue index b373cf9..25cb9cf 100644 --- a/src/components/chat/Chat.vue +++ b/src/components/chat/Chat.vue @@ -49,10 +49,9 @@ :title="subItem.title" :status="stepEnumMap[subItem.status]" > - <!-- <template #icon> - <span v-if="subItem.status === StepEnum.Loading" class="ywifont ywicon-loading animate-spin"></span> - <span v-else class="ywifont ywicon-loading1 animate-spin"></span> - </template> --> + <template #icon v-if="index + 1 === item.stepList.length && isTalking"> + <span class="ywifont ywicon-loading1 animate-spin !text-[24px]"></span> + </template> <template #title> <span class="text-sm">{{ subItem.title }}</span> </template> @@ -353,7 +352,6 @@ let finalCalcSectionAId = null; const questionAi = async (text, assistantMsg: ChatMessage) => { - // processId.value = uuidv4(); let judgeParams = null; if (!preQuestion.value) { // const aiContent = computedMessageList.value.filter((item) => item.role === RoleEnum.assistant); -- Gitblit v1.9.3