From c5828c3bcd73459789133f022f09595ac6a57dc2 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 3 Apr 2025 09:52:50 +0800 Subject: [PATCH] fix: After the page is redirected, the voice playback does not stop --- .../ai-chat/component/operation-button/ChatOperationButton.vue | 3 +++ 1 file changed, 3 insertions(+) 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 8f6478214bc..0c69360a24b 100644 --- a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue +++ b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue @@ -539,6 +539,9 @@ onBeforeUnmount(() => { if (audioManage.value) { audioManage.value.pause() } + if (window.speechSynthesis) { + window.speechSynthesis.cancel() + } })