Explorar o código

处理语音输入组件追加bug

liyanbo hai 3 meses
pai
achega
b7d191f93c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 };
 
 // =========== 【聊天对话】相关 ===========