Ver Fonte

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

wangkeyi há 2 dias atrás
pai
commit
c5318519f1

+ 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('缺少原始文件对象');
     }