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 @@ + + + + + + + + + 加载中... + +