Parcourir la source

处理语音输入组件追加bug

liyanbo il y a 3 mois
Parent
commit
b7d191f93c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
 };
 
 // =========== 【聊天对话】相关 ===========