Эх сурвалжийг харах

回看打开时,停止取任务

Michael Wang 4 жил өмнө
parent
commit
a40ffdbe55

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

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