fix(chat): 修复语音输入框初始化问题

- 在打开语音模态框时重置当前在线文本和最终文本数组
- 确保每次录音开始时都能获得最新的输入内容
This commit is contained in:
Lexcubia 2025-04-28 15:47:57 +08:00
parent f3f72ae654
commit 2ab63f8d84
1 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,8 @@ const openVoiceModal = async () => {
showVoiceModal.value = true showVoiceModal.value = true
isRecording.value = false isRecording.value = false
remainingTime.value = 30 remainingTime.value = 30
currentOnlineText = ''
finalTexts.value = []
audioChunks = [] audioChunks = []
// //