mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
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