From 8eb43bdd01283179f7153c0ffd4b0e67b13e9db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=B5=A9=E6=B5=A9?= <1036606149@qq.com> Date: Sun, 28 Apr 2024 22:37:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=8F=91=E9=80=81=E8=A1=A8=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/im/Message/components/inputBox/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/im/Message/components/inputBox/index.vue b/src/views/im/Message/components/inputBox/index.vue index 02fc310a..238bd1f9 100644 --- a/src/views/im/Message/components/inputBox/index.vue +++ b/src/views/im/Message/components/inputBox/index.vue @@ -61,12 +61,16 @@ const checkAtMembers = (text) => { //emojis框展开 const isShowEmojisBox = ref(false) const emojisBox = ref(null) -onClickOutside(emojisBox, () => { +onClickOutside(emojisBox, (event) => { + console.log('>>>>>关闭模态框') isShowEmojisBox.value = false + event.stopPropagation() }) const showEmojisBox = () => { console.log('>>>>>展开模态框') - isShowEmojisBox.value = true + if (!isShowEmojisBox.value) { + isShowEmojisBox.value = true + } } //新增一个emoji const addOneEmoji = (emoji) => {