Explorar el Código

回看打开时,停止取任务

Michael Wang hace 4 años
padre
commit
a40ffdbe55
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/features/mark/Mark.vue

+ 2 - 1
src/features/mark/Mark.vue

@@ -102,7 +102,8 @@ export default defineComponent({
     addInterval(() => {
       // console.log("get task", store.tasks);
       if (store.tasks.length < (store.setting.prefetchCount ?? 3)) {
-        updateTask();
+        // 回看打开时,停止取任务
+        if (!store.historyOpen) updateTask();
       }
     }, 5 * 1000);