dangdang пре 1 месец
родитељ
комит
2c184dc114
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/views/ChatTts.vue

+ 3 - 1
src/views/ChatTts.vue

@@ -176,7 +176,7 @@ const playNextAudio = async () => {
   // 如果播放队列为空,停止播放
   if (audioQueue.length === 0) {
     isPlaying = false;  // 播放完所有音频
-    audioQueue = []; // 确保列表为空
+    // audioQueue = []; // 确保列表为空
     console.log("所有音频播放完毕.");
     return;
   }
@@ -426,6 +426,8 @@ const chatGpt = async (userMessage) => {
       }
     );
     setTimeout(() => {
+      audioQueue=[]
+      playingQueue=[]
          handleTaskStatus()
      },3000)
     //queue2.add(async () => await updateChatList("", false));