From d5bc7d4051af18ff1d2c8c7a8ee3bbbc9edf79c5 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sun, 10 Nov 2024 08:32:47 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=89=93=E5=BC=80?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/pages/manage/components/DialogItem.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/resources/assets/js/pages/manage/components/DialogItem.vue b/resources/assets/js/pages/manage/components/DialogItem.vue index 31149fbe9..645092ee8 100644 --- a/resources/assets/js/pages/manage/components/DialogItem.vue +++ b/resources/assets/js/pages/manage/components/DialogItem.vue @@ -218,14 +218,13 @@ export default { }, onOpenDialog(userid) { - if (this.dialogData.type != 'group') { - return + if (this.dialogData.type == 'group' || ![this.dialogData.dialog_user?.userid, this.userId].includes(userid)) { + this.$store.dispatch("openDialogUserid", userid).then(_ => { + this.goForward({name: 'manage-messenger'}) + }).catch(({msg}) => { + $A.modalError(msg) + }); } - this.$store.dispatch("openDialogUserid", userid).then(_ => { - this.goForward({name: 'manage-messenger'}) - }).catch(({msg}) => { - $A.modalError(msg) - }); }, onMention() {