From b8af01cc69b6ff6dffeb9118034efc876f80ec7c Mon Sep 17 00:00:00 2001 From: YiLin <482244139@qq.com> Date: Mon, 6 Jul 2026 09:34:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E8=BF=87=E6=BB=A4=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E7=B1=BB=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ChatSidebar.vue | 10 +- pages/Chat/Chat.vue | 8 +- pages/Login/Login.vue | 1 + unpackage/dist/build/app-plus/app-service.js | 4 +- .../dist/build/app-plus/pages/Chat/Chat.css | 2 +- unpackage/dist/dev/app-plus/app-service.js | 289 +++++++++--------- utils/cloud-api.js | 1 + 7 files changed, 171 insertions(+), 144 deletions(-) diff --git a/components/ChatSidebar.vue b/components/ChatSidebar.vue index 0ec2dbb..7e54771 100644 --- a/components/ChatSidebar.vue +++ b/components/ChatSidebar.vue @@ -73,9 +73,9 @@ - {{chat.agent_data.title}} + {{truncateText(chat.agent_data?.title) || "加载中"}} - {{chat.title}} + {{truncateText(chat.title)}} { + if (!text) return '' + return text.length > maxLength ? text.substring(0, maxLength) + '...' : text + } + onMounted(async () => { UserToken.value = getToken() const UserInfo = await getUserInfo(UserToken.value) diff --git a/pages/Chat/Chat.vue b/pages/Chat/Chat.vue index 6212087..26a5bc3 100644 --- a/pages/Chat/Chat.vue +++ b/pages/Chat/Chat.vue @@ -84,8 +84,9 @@ @scrolltoupper="loadMoreMessages" :upper-threshold="0" :scroll-with-animation="true" @scroll="onScroll"> - +