From c89d1d1fe4e820bc9d1a942467a3f1e017b40dac Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 06 十一月 2024 16:33:36 +0800 Subject: [PATCH] 无关代码删除 --- src/components/chat/components/playBar/PlayBar.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/chat/components/playBar/PlayBar.vue b/src/components/chat/components/playBar/PlayBar.vue index 38f36f7..e71d240 100644 --- a/src/components/chat/components/playBar/PlayBar.vue +++ b/src/components/chat/components/playBar/PlayBar.vue @@ -207,6 +207,7 @@ onClickOutside(tipEleRef, () => { triggerShow.value = false; }); + const inputText = (text) => { nextTick(() => { setTimeout(() => { @@ -438,11 +439,10 @@ //#region ====================== 褰撳墠搴旂敤鍦烘櫙 ====================== const currentGroupTypeIsShow = computed(() => !!activeGroupType.value); - const groupTypeClick = (item) => { activeGroupType.value = item; - inputRef.value.focus(); + commonPhrasesRef.value.getCommonPhrases(); }; // 鍏抽棴褰撳墠 groupType 闈㈡澘 @@ -456,6 +456,9 @@ const commonPhrasesClick = () => { isShowPhrase.value = true; }; +onClickOutside(commonPhrasesRef, () => { + isShowPhrase.value = false; +}); const updateCommonChatInput = (val) => { inputValue.value = val; isShowPhrase.value = false; -- Gitblit v1.9.3