Parcourir la source

问题卷清空轨迹和分数

Michael Wang il y a 4 ans
Parent
commit
9405e0a08a
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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;