Skip to content

Commit f9cc960

Browse files
committed
fix: Fix speech recognition failed, the input box did not restore the default style.
--bug=1051969 --user=刘瑞斌 【应用】语音识别失败后输入框没有恢复默认的样式 https://www.tapd.cn/57709429/s/1651864
1 parent 89e2319 commit f9cc960

File tree

1 file changed

+4
-0
lines changed
  • ui/src/components/ai-chat/component/chat-input-operate

1 file changed

+4
-0
lines changed

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,10 @@ const uploadRecording = async (audioBlob: Blob) => {
484484
})
485485
}
486486
})
487+
.catch((error) => {
488+
recorderLoading.value = false
489+
console.error(`${t('chat.uploadFile.errorMessage')}:`, error)
490+
})
487491
} catch (error) {
488492
recorderLoading.value = false
489493
console.error(`${t('chat.uploadFile.errorMessage')}:`, error)

0 commit comments

Comments
 (0)