From 8668796c5d13456db9248b73be768dfffbfd6718 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Sat, 8 Feb 2025 20:58:22 +0800 Subject: [PATCH] fix: Fix speech recognition failed, the input box did not restore the default style. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1051969 --user=刘瑞斌 【应用】语音识别失败后输入框没有恢复默认的样式 https://www.tapd.cn/57709429/s/1651864 --- .../components/ai-chat/component/chat-input-operate/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue index b45c31ae5..677176033 100644 --- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue +++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue @@ -484,6 +484,10 @@ const uploadRecording = async (audioBlob: Blob) => { }) } }) + .catch((error) => { + recorderLoading.value = false + console.error(`${t('chat.uploadFile.errorMessage')}:`, error) + }) } catch (error) { recorderLoading.value = false console.error(`${t('chat.uploadFile.errorMessage')}:`, error)