diff --git a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue index 366e9895f..209fdb614 100644 --- a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue +++ b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue @@ -474,6 +474,9 @@ class AudioManage { } // 等待取消完成后重新播放 setTimeout(() => { + if (speechSynthesis.speaking) { + return + } speechSynthesis.speak(audioElement) this.statusList[index] = AudioStatus.PLAY_INT }, 500)