fix: After the page is redirected, the voice playback does not stop (#2789)

This commit is contained in:
shaohuzhang1 2025-04-03 09:53:54 +08:00 committed by GitHub
parent 9d6451b95b
commit 69ae1cafab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -539,6 +539,9 @@ onBeforeUnmount(() => {
if (audioManage.value) {
audioManage.value.pause()
}
if (window.speechSynthesis) {
window.speechSynthesis.cancel()
}
})
</script>
<style lang="scss" scoped>