소스 검색

处理语音输入组件追加bug

liyanbo 5 달 전
부모
커밋
b7d191f93c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/ai/text/TextToText.vue

+ 1 - 1
src/components/ai/text/TextToText.vue

@@ -210,7 +210,7 @@ const getConversation = async (id) => {
 
 // 语音输入识别结果处理
 const handleVoiceRecognized = (text) => {
-  prompt.value += text;
+  prompt.value = text;
 };
 
 // =========== 【聊天对话】相关 ===========