From 8523de3e77f8b71cce8f90ed3f1b7d2885d9806b Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期三, 06 十一月 2024 10:26:14 +0800
Subject: [PATCH] Merge branch 'test' of http://47.103.154.90:83/r/WI/Web.V1.0 into test

---
 src/components/chat/components/playBar/PlayBar.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/components/chat/components/playBar/PlayBar.vue b/src/components/chat/components/playBar/PlayBar.vue
index 5419293..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;
@@ -464,7 +467,7 @@
 	if (!props.isHome) {
 		let obj = {
 			id: val?.historyId,
-			title: val?.content.values,
+			question: val?.content.values,
 		};
 		commonPhrasesRef.value.commonChatByUser(obj);
 		isShowPhrase.value = true;

--
Gitblit v1.9.3