From f240176563f23badb98ba1a748a0d48ba390c06f Mon Sep 17 00:00:00 2001 From: YiLin <482244139@qq.com> Date: Sat, 25 Jul 2026 18:10:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=A0=E8=BD=BD=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B0=94=E6=B3=A1=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ChatSidebar.vue | 4 +- pages/Chat/Chat.vue | 81 +++++++++- unpackage/dist/dev/app-plus/app-service.js | 147 +++++++++++------- .../dist/dev/app-plus/pages/Chat/Chat.css | 28 ++++ 4 files changed, 194 insertions(+), 66 deletions(-) diff --git a/components/ChatSidebar.vue b/components/ChatSidebar.vue index e5fbaad..13c2ab2 100644 --- a/components/ChatSidebar.vue +++ b/components/ChatSidebar.vue @@ -163,7 +163,8 @@ 'update:showNewChatModal', 'update:currentSessionId', 'refresh-conversations', - 'update:chatType' + 'update:chatType', + 'select-chat' ]) const UserConversations = toRef(props, 'chatList') @@ -262,6 +263,7 @@ } uni.setStorageSync('currentSessionId', chatId) emit('update:currentSessionId', chatId) + emit('select-chat') } diff --git a/pages/Chat/Chat.vue b/pages/Chat/Chat.vue index b7f90b0..ebe1ce4 100644 --- a/pages/Chat/Chat.vue +++ b/pages/Chat/Chat.vue @@ -41,7 +41,8 @@ + @refresh-conversations="takeUserConversations" + @select-chat="isChatSidebar = false"> @@ -67,6 +68,17 @@ + + + + + + + + + 加载中... + +