From 66f674f65115ed0da0c057710a66d15069953857 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 24 Mar 2025 17:54:45 +0800 Subject: [PATCH] fix: Voice playback is not played in order (#2668) --- .../component/operation-button/ChatOperationButton.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue index c37af9ba..6a119723 100644 --- a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue +++ b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue @@ -413,7 +413,9 @@ class AudioManage { this.reTryError() // 需要播放的内容 - const index = this.statusList.findIndex((status) => [AudioStatus.READY].includes(status)) + const index = this.statusList.findIndex((status) => + [AudioStatus.MOUNTED, AudioStatus.READY].includes(status) + ) if (index < 0 || this.statusList[index] === AudioStatus.MOUNTED) { return