Browse Source

正在播放其他音频的过程中,发送消息后播放新音频时,旧音频按钮状态未改变的问题

milestone-20250710-上线前优化
no99 2 days ago
parent
commit
cc952e0121
  1. 4
      src/views/AIchat.vue

4
src/views/AIchat.vue

@ -1064,6 +1064,10 @@ watch(
previousMessagesLength.value = newVal.length; previousMessagesLength.value = newVal.length;
if (newVal.length > 0) { if (newVal.length > 0) {
// //
console.log("chatStore.currentUserIndex", chatStore.currentUserIndex);
if (chatStore.currentUserIndex!=null) {
chatStore.messages[chatStore.currentUserIndex].audioStatus = false;
}
chatStore.currentUserIndex = null; chatStore.currentUserIndex = null;
audioStore.stop(); // audioStore.stop(); //

Loading…
Cancel
Save