From 2ab63f8d84a9ab253657f7f08f5f02b5bf3f5caa Mon Sep 17 00:00:00 2001 From: Lexcubia Date: Mon, 28 Apr 2025 15:47:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(chat):=20=E4=BF=AE=E5=A4=8D=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E8=BE=93=E5=85=A5=E6=A1=86=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在打开语音模态框时重置当前在线文本和最终文本数组 - 确保每次录音开始时都能获得最新的输入内容 --- src/views/chat/components/VoiceInput.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/chat/components/VoiceInput.vue b/src/views/chat/components/VoiceInput.vue index b4cf460..0df50a4 100644 --- a/src/views/chat/components/VoiceInput.vue +++ b/src/views/chat/components/VoiceInput.vue @@ -152,6 +152,8 @@ const openVoiceModal = async () => { showVoiceModal.value = true isRecording.value = false remainingTime.value = 30 + currentOnlineText = '' + finalTexts.value = [] audioChunks = [] // 自动开始录音