Explorar el Código

问题卷清空轨迹和分数

Michael Wang hace 4 años
padre
commit
9405e0a08a
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/api/markPage.ts

+ 5 - 0
src/api/markPage.ts

@@ -151,6 +151,11 @@ export async function doProblemType(problemId: number) {
   if (markResult) {
     markResult.problem = true;
     markResult.problemTypeId = problemId;
+    // @ts-ignore FIXME: should allow null
+    markResult.markerScore = null;
+    markResult.scoreList = [];
+    markResult.specialTagList = [];
+    markResult.trackList = [];
 
     if (markResult.spent > 24 * 60 * 60 * 1000)
       markResult.spent = Date.now() - markResult.spent;