Просмотр исходного кода

语音输入优化:实时识别数据插入光标位置

liyanbo 2 месяцев назад
Родитель
Сommit
f26e411c72
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/views/AIPage/aiGenerate/DialogContent.vue

+ 2 - 2
src/views/AIPage/aiGenerate/DialogContent.vue

@@ -67,8 +67,8 @@
         </div>
         <div class="dialogue-content">
           <textarea
-            :value="isVoiceRecording ? userInput + (userInput ? ' ' : '') + voiceRecognizedText : userInput"
-            @input="e => { if (!isVoiceRecording) userInput = e.target.value }"
+            :value="userInput"
+            @input="e => userInput = e.target.value"
             class="user-input-textarea"
             placeholder="请输入内容..."
             @keyup.enter.exact="submitUserInput"