wujingjing
2024-12-31 5809dbeb20d83b30a9d4e5354016e5d56d9a7e6e
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 ====================== 分享 ======================