diff --git a/src/views/deepNine.vue b/src/views/deepNine.vue index 9b8c326..8a1d388 100644 --- a/src/views/deepNine.vue +++ b/src/views/deepNine.vue @@ -88,11 +88,6 @@ const playNextAudio = () => { } return; } - // if (currentPlayIndex >= audioQueue.value.length) { - // console.log("所有音频播放完成"); - // isPlayingAudio.value = false; - // return; - // } isCallingPlayNext = true; const audioInfo = audioQueue.value[currentPlayIndex]; @@ -158,13 +153,8 @@ const playNextAudio = () => { chatStore.messages[chatStore.currentUserIndex].audioStatus = false; audioStore.nowSound = null; audioStore.soundInstance = null; - // currentPlayIndex = 0; isCallingPlayNext = false; - // setTimeout(() => { - // isCallingPlayNext = false; - // playNextAudio(); - // }, 500); // 间隔500ms播放下一个 } }, onstop: () => { @@ -411,22 +401,10 @@ const playAudio = (url) => { audioStore.setAudioInstance(newSound); Howler._howls.push(newSound); // 强制注册到全局管理 - // // 处理浏览器自动播放策略 - // if (Howler.autoUnlock) { - // Howler.autoUnlock(); - // } }; - // if (/iPhone|iPad|iPod/.test(navigator.userAgent)) { - // document.addEventListener('touchstart', handlePlay, { once: true }); - // ElMessage.info('请轻触屏幕以启用音频播放'); - // } else { - // handlePlay(); - // } - handlePlay(); - // Howler.volume(1.0) // 添加全局音量设置 }; // 新增暂停方法 const pauseAudio = () => { @@ -1040,13 +1018,13 @@ async function continueThinkingProcess(thinkingMessageRef, stockName) { chatStore.messages.splice(index, 1); } - // 第三步:生成具体股票的全景作战报告 + // 第三步:生成具体股票的深度共振分析图谱 const thinkingMessage3 = reactive({ sender: "ai", class: "ing", type: "ing", flag: true, - content: `正在生成${stockName}全景作战报告`, + content: `正在生成${stockName}深度共振分析图谱`, gif: generateGif, }); chatStore.messages.push(thinkingMessage3);