From 6bc00eb8698d04af8d7e8221ff91130b1ee68445 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Thu, 3 Apr 2025 11:34:26 +0800 Subject: [PATCH] fix: During the debugging process, the browser voice will automatically play after returning to other pages (#2794) --- .../ai-chat/component/operation-button/ChatOperationButton.vue | 2 ++ 1 file changed, 2 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 0c69360a2..4c6d02d7c 100644 --- a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue +++ b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue @@ -536,6 +536,8 @@ onMounted(() => { }) }) onBeforeUnmount(() => { + bus.off('change:answer') + bus.off('play:pause') if (audioManage.value) { audioManage.value.pause() }