From c7d3651964397d49eaae25023493b49d77a0595a Mon Sep 17 00:00:00 2001 From: tiantian <1012874180@qq.com> Date: Sat, 16 Nov 2024 18:20:28 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=B7=BB=E5=8A=A0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E8=81=8A=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/chat/Chat.vue | 5 +- frontend/src/components/chat/ChatBox.vue | 102 ++++++++++++++++- frontend/src/components/chat/ChatMsgList.vue | 10 +- frontend/src/components/chat/chatUserInfo.vue | 10 +- frontend/src/stores/chat.ts | 105 +++++++++++++++--- frontend/src/stores/db.ts | 6 +- frontend/src/stores/upgrade.ts | 3 + 7 files changed, 212 insertions(+), 29 deletions(-) diff --git a/frontend/src/components/chat/Chat.vue b/frontend/src/components/chat/Chat.vue index 9f7cc52..329cea9 100644 --- a/frontend/src/components/chat/Chat.vue +++ b/frontend/src/components/chat/Chat.vue @@ -18,7 +18,8 @@ const data = ref(generateData()); // 声明 users 时指定类型为 any[] - const users = ref([]); + let users = ref([]); + const myTransfer = ref() watchEffect(() => { if (store.allUserList.length > 0) { @@ -133,7 +134,9 @@ style="height: 250px" filter-placeholder="搜索用户名" :props="{ key: 'key', label: 'label', avatar: 'avatar' }" + :left-default-checked="[]" class="transfer-container" + ref="myTransfer" >