瀏覽代碼

[Mod 0000]修改ai助手代办列表渲染逻辑

wangkeyi 3 天之前
父節點
當前提交
c5318519f1
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/views/ventAI/manageAssistent/components/AiAssistantModal.vue

+ 8 - 0
src/views/ventAI/manageAssistent/components/AiAssistantModal.vue

@@ -486,6 +486,8 @@
 
     loading.value = true;
     approveTask.isStreaming = true;
+    showTodoBar.value = false;
+    currentTodos.value = [];
 
     try {
       const result = await chatResumeStream(
@@ -1149,6 +1151,9 @@
     messages.value.push(aiMsg);
     await scrollToBottom();
 
+    showTodoBar.value = false;
+    currentTodos.value = [];
+
     const originTask = taskList.value.find((t) => t.id === originTaskId);
     if (originTask) originTask.isStreaming = true;
 
@@ -1219,6 +1224,9 @@
     messages.value.push(aiMsg);
     await scrollToBottom();
 
+    showTodoBar.value = false;
+    currentTodos.value = [];
+
     if (!file.originalFile) {
       throw new Error('缺少原始文件对象');
     }