fix: After the page is redirected, the voice playback does not stop (#2789)
This commit is contained in:
parent
9d6451b95b
commit
69ae1cafab
@ -539,6 +539,9 @@ onBeforeUnmount(() => {
|
||||
if (audioManage.value) {
|
||||
audioManage.value.pause()
|
||||
}
|
||||
if (window.speechSynthesis) {
|
||||
window.speechSynthesis.cancel()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user