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) => {