From 3aeecc476936468f6f46aaf5bf9f400eda2f1db6 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sun, 25 Oct 2026 15:08:17 +0000 Subject: [PATCH] =?UTF-8?q?fix(contacts):=20=E9=83=A8=E9=97=A8=E8=A7=86?= =?UTF-8?q?=E8=A7=92=E4=B8=8B=E9=95=BF=E6=8C=89=E8=81=94=E7=B3=BB=E4=BA=BA?= =?UTF-8?q?=E5=BC=B9=E5=87=BA=E8=8F=9C=E5=8D=95=E5=90=8E=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E8=BF=9B=E5=85=A5=E8=81=94=E7=B3=BB=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/manage/messenger.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/pages/manage/messenger.vue b/resources/assets/js/pages/manage/messenger.vue index dfcba4b56..b070694fb 100644 --- a/resources/assets/js/pages/manage/messenger.vue +++ b/resources/assets/js/pages/manage/messenger.vue @@ -155,7 +155,7 @@ :data-id="user.userid" data-type="contacts" :class="userClass(user)" - @click="openContacts(user)" + @click="handleContactsSelect(user)" @pointerdown="handleOperation">
@@ -896,6 +896,13 @@ export default { this.$store.dispatch("openDialog", dialogId) }, + handleContactsSelect(user) { + if (this.operateVisible) { + return + } + this.openContacts(user) + }, + openContacts(user) { if (user.loading) { return @@ -1278,7 +1285,7 @@ export default { if (this.contactsKey) { return; } - this.operateItem = this.contactsFilter.find(item => item.userid == data.dataId) + this.operateItem = this.contactsList.reduce((found, group) => found || group.list.find(item => item.userid == data.dataId), null) } else { if (this.dialogSearchKey) { return;