소스 검색

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

liyanbo 2 달 전
부모
커밋
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"