diff --git a/src/components/chat/HistoryList.vue b/src/components/chat/HistoryList.vue index 5859bad..e9355bd 100644 --- a/src/components/chat/HistoryList.vue +++ b/src/components/chat/HistoryList.vue @@ -1,38 +1,68 @@ - - - - 历史会话 - - - - - {{ formatChatTitle(chat) }} - - + + + + + + 历史会话 + + + + + {{ formatChatTitle(chat) }} + + + + + + 暂无历史会话 - - - 暂无历史会话 - - + + + + + + + + + + {{ formatChatTitle(chat) }} + + + + + 暂无历史会话 + + + \ No newline at end of file diff --git a/src/store/chat.js b/src/store/chat.js index b7e8fc2..b4ac1fb 100644 --- a/src/store/chat.js +++ b/src/store/chat.js @@ -301,9 +301,9 @@ export const useChatStore = defineStore('chat', { startNewChat() { // 如果当前有活跃会话,将其标记为完成 - if (this.conversationId && this.messages[this.conversationId]) { - this.messages[this.conversationId].conversationStatus = 'finished' - } + // if (this.conversationId && this.messages[this.conversationId]) { + // this.messages[this.conversationId].conversationStatus = 'finished' + // } // 只清除当前会话相关的消息缓存 if (this.conversationId) { diff --git a/src/views/chat/ChatInterface.vue b/src/views/chat/ChatInterface.vue index 2ca14ac..82259ab 100644 --- a/src/views/chat/ChatInterface.vue +++ b/src/views/chat/ChatInterface.vue @@ -73,13 +73,6 @@