Explorar el Código

fix 回评中取任务并替换任务的bug

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

+ 4 - 1
src/components/mark/Mark.vue

@@ -77,7 +77,10 @@ export default defineComponent({
       const res = await getTask();
       if (res.data.libraryId) {
         store.tasks.push(res.data);
-        store.currentTask = store.tasks[0];
+        if (!store.historyOpen) {
+          // 回评中,不能替换task
+          store.currentTask = store.tasks[0];
+        }
       }
     }