From 4516bce0eecf7f6224fde7cbd0c1de74be3f05af Mon Sep 17 00:00:00 2001 From: "Mr.Huan" Date: Wed, 26 Jan 2022 17:13:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E4=B8=BA=E7=A9=BA=E6=97=B6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=89=93=E5=BC=80=E8=AF=A5=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/manage/messenger.vue | 3 ++- resources/assets/js/store/actions.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/pages/manage/messenger.vue b/resources/assets/js/pages/manage/messenger.vue index 007f1d59..8495c8b9 100644 --- a/resources/assets/js/pages/manage/messenger.vue +++ b/resources/assets/js/pages/manage/messenger.vue @@ -200,7 +200,8 @@ export default { } }, dialogOpenId(id) { - this.dialogId = id; + if ( id > 0 ) + this.dialogId = id; }, contactsKey(val) { setTimeout(() => { diff --git a/resources/assets/js/store/actions.js b/resources/assets/js/store/actions.js index 1229d271..ead1323b 100644 --- a/resources/assets/js/store/actions.js +++ b/resources/assets/js/store/actions.js @@ -1765,6 +1765,8 @@ export default { reject({msg: 'Parameter error'}); return; } + // 先重置dialogOpenId,否者无法重复打开相同对话 + state.dialogOpenId = 0; dispatch("call", { url: 'dialog/open/user', data: {