From 5809dbeb20d83b30a9d4e5354016e5d56d9a7e6e Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期二, 31 十二月 2024 13:48:25 +0800
Subject: [PATCH] 整理 常用语组件

---
 src/components/chat/Chat.vue |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue
index 737079c..2b10d65 100644
--- a/src/components/chat/Chat.vue
+++ b/src/components/chat/Chat.vue
@@ -13,7 +13,7 @@
 				:msgList="computedMessageList"
 				:isTalking="isTalking"
 				@shareClick="shareClick"
-				@setCommonQuestionClick="setCommonQuestionClick"
+				@setCommonQuestionClick="setCommonPhraseClick"
 				@sendChatMessage="sendChatMessage"
 				@askMoreClick="askMoreClick"
 			/>
@@ -27,6 +27,7 @@
 		<!-- 杈撳叆鍖哄煙 -->
 		<template #input-area>
 			<PlayBar
+				ref="playBarRef"
 				v-model:voicePageIsShow="voicePageIsShow"
 				:isTalking="isTalking"
 				:isHome="false"
@@ -36,7 +37,6 @@
 				@stopGenClick="stopGenClick"
 				@showDownChatClick="showDownChatClick"
 				:style="{ width: chatWidth }"
-				:setCommonQuestionInfo="setCommonQuestionInfo"
 			/>
 		</template>
 
@@ -660,14 +660,11 @@
 	messageContent.value.values = content;
 };
 //#endregion
-//#region ====================== 鐢ㄦ埛璇㈤棶鐨勯棶棰樿缃负甯哥敤璇� ======================
-const setCommonQuestionInfo = ref({});
-
+const playBarRef = useCompRef(PlayBar);
 //鐢ㄦ埛闂璁剧疆涓哄父鐢ㄨ
-const setCommonQuestionClick = (item) => {
-	setCommonQuestionInfo.value = item;
+const setCommonPhraseClick = (item) => {
+	playBarRef.value.addPhrase(item);
 };
-//#endregion
 
 //#region ====================== 鍒嗕韩 ======================
 

--
Gitblit v1.9.3