Skip to content

Commit 66f674f

Browse files
authored
fix: Voice playback is not played in order (#2668)
1 parent 98ef6e5 commit 66f674f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ class AudioManage {
413413
this.reTryError()
414414
415415
// 需要播放的内容
416-
const index = this.statusList.findIndex((status) => [AudioStatus.READY].includes(status))
416+
const index = this.statusList.findIndex((status) =>
417+
[AudioStatus.MOUNTED, AudioStatus.READY].includes(status)
418+
)
417419
418420
if (index < 0 || this.statusList[index] === AudioStatus.MOUNTED) {
419421
return

0 commit comments

Comments
 (0)