fix(chat): 修复语音输入框初始化问题
- 在打开语音模态框时重置当前在线文本和最终文本数组 - 确保每次录音开始时都能获得最新的输入内容
This commit is contained in:
parent
f3f72ae654
commit
2ab63f8d84
|
@ -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 = []
|
||||||
|
|
||||||
// 自动开始录音
|
// 自动开始录音
|
||||||
|
|
Loading…
Reference in New Issue