From 18377d025b6b4a8b6c3678f3a2555dfbee28122e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Mon, 23 Mar 2026 16:25:04 +0800 Subject: [PATCH] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E=E5=90=89?= =?UTF-8?q?=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84=E9=9C=80?= =?UTF-8?q?=E6=B1=82=5Ffix:=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/components/question.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/pages/index/components/question.vue b/src/pages/index/components/question.vue index a8acce04..79177816 100644 --- a/src/pages/index/components/question.vue +++ b/src/pages/index/components/question.vue @@ -225,6 +225,23 @@ // },200) // } } + + watch( + () => props.activeVoiceId, + (val) => { + if (val !== props.dataInfo.id) { + if (isPlaying.value) { + isPlaying.value = false + if (!talkVoiceObj.value) return + talkVoiceObj.value.pause() + } + } + }, { + deep: true, + immediate: true + } + ) +