Browse Source

feat: 收起思考块

zhangwl 2 months ago
parent
commit
12beeb0344
1 changed files with 2 additions and 2 deletions
  1. 2 2
      chat-ai-ui-main/src/stores/chat.ts

+ 2 - 2
chat-ai-ui-main/src/stores/chat.ts

@@ -166,7 +166,7 @@ export const useChatStore = defineStore('chat', () => {
       displayContent: '',
       thinkingContent: '',
       thinkingDisplayContent: '',
-      isThinkingCollapsed: false,
+      isThinkingCollapsed: true, //true-思考块会默认收起,用户点击"💭 思考过程"可以展开查看, false-思考块会默认展开
       searchingItems: [],
       phase: 'thinking',
       isStreaming: true,
@@ -311,4 +311,4 @@ export const useChatStore = defineStore('chat', () => {
   };
 
   return { messages, isLoading, sessionId, sessions, sidebarOpen, loadChatHistory, loadSessions, sendMessage, newConversation, switchSession, deleteSession };
-});
+});