diff --git a/src/store/chat.js b/src/store/chat.js index 757df8d..98f8a88 100644 --- a/src/store/chat.js +++ b/src/store/chat.js @@ -11,6 +11,8 @@ export const useChatStore = defineStore("chat", { searchRecord: false, currentUserIndex: null, announcementMsg: null, + aiChatCall:false, + aiEmotionCall:false }), actions: { async getUserCount() { diff --git a/src/views/AIchat.vue b/src/views/AIchat.vue index 1e176b6..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(); // 暂停语音 @@ -1178,7 +1182,7 @@ watch( class: "ing", type: "ing", flag: flag, - content: aiContent, + content: AIcontent, }); chatStore.isLoading = false; @@ -5088,7 +5092,7 @@ p { .ai-message-content { display: flex; align-items: center; - white-space: nowrap; + /* white-space: nowrap; */ width: fit-content; overflow: visible; } diff --git a/src/views/components/HistoryRecord.vue b/src/views/components/HistoryRecord.vue index fceb264..054d7a1 100644 --- a/src/views/components/HistoryRecord.vue +++ b/src/views/components/HistoryRecord.vue @@ -96,7 +96,7 @@