Skip to content

Commit 69ae1ca

Browse files
authored
fix: After the page is redirected, the voice playback does not stop (#2789)
1 parent 9d6451b commit 69ae1ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ onBeforeUnmount(() => {
539539
if (audioManage.value) {
540540
audioManage.value.pause()
541541
}
542+
if (window.speechSynthesis) {
543+
window.speechSynthesis.cancel()
544+
}
542545
})
543546
</script>
544547
<style lang="scss" scoped>

0 commit comments

Comments
 (0)