diff --git a/src/views/AIchat.vue b/src/views/AIchat.vue index 779405b..f0ffef9 100644 --- a/src/views/AIchat.vue +++ b/src/views/AIchat.vue @@ -1064,6 +1064,10 @@ watch( previousMessagesLength.value = newVal.length; if (newVal.length > 0) { // 清理语音下标 + console.log("chatStore.currentUserIndex", chatStore.currentUserIndex); + if (chatStore.currentUserIndex!=null) { + chatStore.messages[chatStore.currentUserIndex].audioStatus = false; + } chatStore.currentUserIndex = null; audioStore.stop(); // 暂停语音