From 653eca3a9847cae26c78209d43e53f003c224f68 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 13 十一月 2024 10:32:55 +0800 Subject: [PATCH] ignore --- src/components/chat/Chat.vue | 29 +++++++++++++---------------- 1 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue index 04e64e5..aa7f229 100644 --- a/src/components/chat/Chat.vue +++ b/src/components/chat/Chat.vue @@ -118,18 +118,18 @@ <p class="text-red-500"> {{ item.content.errMsg }} </p> - <div class="mt-5 flex items-center" v-if="showFixQuestion(item)"> - <div class="text-gray-600 flex-0"> - {{ item.content.origin.err_json.fix_question.title + '锛�' }} + <div class="mt-5 flex" v-if="showFixQuestion(item)"> + <div class="text-gray-600 flex-0 mt-4"> + {{ '鐚滀綘鎯抽棶锛�' }} </div> <div class="ml-1 space-x-2 inline-flex flex-wrap"> <div - v-for="fixItem in item.content.origin.err_json.fix_question?.values" + v-for="fixItem in item.content.origin?.sample_question" :key="fixItem" - class="bg-gray-200 p-3 hover:bg-[#c5e0ff] hover:text-[#1c86ff] cursor-pointer rounded-lg" + class="bg-gray-200 p-3 mt-1 hover:bg-[#c5e0ff] hover:text-[#1c86ff] cursor-pointer rounded-lg" @click="fixQuestionClick(fixItem, item.content.origin)" > - {{ fixItem.title }} + {{ fixItem }} </div> </div> </div> @@ -642,17 +642,14 @@ onMounted(async () => { messageList.value = []; - setTimeout(() => { - emitter.emit('updateHeaderTitle', activeChatRoom.value?.title ?? ''); - - }, 300); - - // 鍔犺浇鍒濆鏁版嵁 chatListLoading.value = true; await loadRangeData().finally(() => { chatListLoading.value = false; }); + setTimeout(() => { + emitter.emit('updateHeaderTitle', activeChatRoom.value?.title ?? ''); + }, 300); if (messageList.value.length === 0) { messageContent.value = { @@ -663,10 +660,10 @@ sendChatMessage(); } else { if (isSharePage.value) { - setTimeout(() => { - // 婊氬姩鍒伴《閮� - scrollToTop(); - }, 300); + // setTimeout(() => { + // // 婊氬姩鍒伴《閮� + // scrollToTop(); + // }, 300); } else { setTimeout(() => { // 鍒濆鐘舵�佹粴涓�涓� -- Gitblit v1.9.3