From 148942ff1bb5694d8293f1b4880a25663420f9f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Mon, 24 Nov 2025 10:03:12 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/sparring/components/question.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/pages/sparring/components/question.vue b/src/pages/sparring/components/question.vue index 886858e2..6d216f0b 100644 --- a/src/pages/sparring/components/question.vue +++ b/src/pages/sparring/components/question.vue @@ -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 + } + )