From 9a033e2ff5159b9e4ab1f087635e79508b42f92b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Sun, 17 Aug 2025 15:39:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=83=85=E7=BB=AA=E5=A4=A7?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=90=9C=E7=B4=A2=E5=90=8C=E4=B8=80=E5=8F=AA?= =?UTF-8?q?=E8=82=A1=E7=A5=A8=E6=97=B6=E9=9F=B3=E9=A2=91=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=92=AD=E6=94=BE=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AiEmotion.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue index 4a1cc4d..b6caa39 100644 --- a/src/views/AiEmotion.vue +++ b/src/views/AiEmotion.vue @@ -2905,14 +2905,10 @@ function setupIntersectionObserver() { "用户主动搜索,该股票第一次进入场景应用,开始打字机效果和音频播放" ); - if (!stockAudioPlayed.value.has(stockCode)) { - console.log("开始音频播放和打字机效果"); - stockAudioPlayed.value.set(stockCode, true); - playAudioQueue(parsedConclusion.value, true); - } else { - // 如果音频已播放过,只启动打字机效果 - startTypewriterEffect(parsedConclusion.value, stockCode); - } + // 用户主动搜索时,每次都播放音频和打字机效果 + console.log("开始音频播放和打字机效果"); + stockAudioPlayed.value.set(stockCode, true); + playAudioQueue(parsedConclusion.value, true); stockTypewriterShown.value.set(stockCode, true); } else {