fix: bug

This commit is contained in:
杨航
2025-11-24 10:03:12 +08:00
parent 71d4c62d48
commit 148942ff1b
@@ -171,6 +171,21 @@
deep: true,
immediate: true
})
watch(
() => props.activeVoiceId,
(val) => {
if (val !== props.dataInfo.id) {
if (isPlaying.value) {
isPlaying.value = false
if (!talkUserVoiceObj.value) return
talkUserVoiceObj.value.pause()
}
}
}, {
deep: true,
immediate: true
}
)
</script>
<style scoped lang="scss">