浏览代码

Merge branch 'fix/2026-03-28-undefined-rebuildTaskIndex'

ethanfly 2 周之前
父节点
当前提交
ae527c0bf5
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      client/src/stores/taskQueue.ts

+ 0 - 2
client/src/stores/taskQueue.ts

@@ -527,7 +527,6 @@ export const useTaskQueueStore = defineStore('taskQueue', () => {
   }
 
   // 清理已完成任务
-  // 清理已完成任务
   async function clearCompletedTasks() {
     try {
       await request.post('/api/tasks/clear-completed');
@@ -537,7 +536,6 @@ export const useTaskQueueStore = defineStore('taskQueue', () => {
     tasks.value = tasks.value.filter(t =>
       t.status === 'pending' || t.status === 'running'
     );
-    rebuildTaskIndex();
   }
   
   // 自动清理老旧任务(限制总任务数不超过 MAX_TASKS)