Browse Source

修建深度九页面

milestone-20250924-接入大财神工作流
no99 2 weeks ago
parent
commit
bcb4e76a7b
  1. 26
      src/views/deepNine.vue

26
src/views/deepNine.vue

@ -88,11 +88,6 @@ const playNextAudio = () => {
} }
return; return;
} }
// if (currentPlayIndex >= audioQueue.value.length) {
// console.log("");
// isPlayingAudio.value = false;
// return;
// }
isCallingPlayNext = true; isCallingPlayNext = true;
const audioInfo = audioQueue.value[currentPlayIndex]; const audioInfo = audioQueue.value[currentPlayIndex];
@ -158,13 +153,8 @@ const playNextAudio = () => {
chatStore.messages[chatStore.currentUserIndex].audioStatus = false; chatStore.messages[chatStore.currentUserIndex].audioStatus = false;
audioStore.nowSound = null; audioStore.nowSound = null;
audioStore.soundInstance = null; audioStore.soundInstance = null;
// currentPlayIndex = 0;
isCallingPlayNext = false; isCallingPlayNext = false;
// setTimeout(() => {
// isCallingPlayNext = false;
// playNextAudio();
// }, 500); // 500ms
} }
}, },
onstop: () => { onstop: () => {
@ -411,22 +401,10 @@ const playAudio = (url) => {
audioStore.setAudioInstance(newSound); audioStore.setAudioInstance(newSound);
Howler._howls.push(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(); handlePlay();
// Howler.volume(1.0) //
}; };
// //
const pauseAudio = () => { const pauseAudio = () => {
@ -1040,13 +1018,13 @@ async function continueThinkingProcess(thinkingMessageRef, stockName) {
chatStore.messages.splice(index, 1); chatStore.messages.splice(index, 1);
} }
//
//
const thinkingMessage3 = reactive({ const thinkingMessage3 = reactive({
sender: "ai", sender: "ai",
class: "ing", class: "ing",
type: "ing", type: "ing",
flag: true, flag: true,
content: `正在生成${stockName}全景作战报告`,
content: `正在生成${stockName}深度共振分析图谱`,
gif: generateGif, gif: generateGif,
}); });
chatStore.messages.push(thinkingMessage3); chatStore.messages.push(thinkingMessage3);

Loading…
Cancel
Save