From cb55e287a4e4bffd73e0b994ad2c89e4f25e4d0d Mon Sep 17 00:00:00 2001 From: DCloud_JSON Date: Mon, 22 Apr 2024 21:10:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E9=95=BF=E6=8C=89=E6=B6=88=E6=81=AF=E5=90=8E=E5=BC=B9?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E8=8F=9C=E5=8D=95=E4=BC=9A=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/uni-im-msg/popup-control.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/uni-im-msg/popup-control.vue b/components/uni-im-msg/popup-control.vue index decc43d..9b52bf1 100644 --- a/components/uni-im-msg/popup-control.vue +++ b/components/uni-im-msg/popup-control.vue @@ -62,7 +62,7 @@ }, share(e){ // 仅支持web pc端 - if(!uniIm.isWidescreen){ + if(!this.isWidescreen){ uni.showToast({ title:'仅支持web pc端', icon:'none' @@ -129,7 +129,7 @@ // 当蒙版弹出,鼠标右键就关闭msg-popup-control const popupControl = document.getElementById('popup-control') popupControl.addEventListener('contextmenu',(e) => { - if(this.isShow){ + if(this.isShow && this.isWidescreen){ this.isShow = false } e.preventDefault() -- GitLab