fix: During the debugging process, the browser voice will automatically play after returning to other pages (#2794)
Some checks failed
sync2gitee / repo-sync (push) Has been cancelled
Typos Check / Spell Check with Typos (push) Has been cancelled

This commit is contained in:
shaohuzhang1 2025-04-03 11:34:26 +08:00 committed by GitHub
parent 1eccb54199
commit 6bc00eb869
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -536,6 +536,8 @@ onMounted(() => {
})
})
onBeforeUnmount(() => {
bus.off('change:answer')
bus.off('play:pause')
if (audioManage.value) {
audioManage.value.pause()
}