Browse Source

问题卷清空轨迹和分数

Michael Wang 4 years ago
parent
commit
9405e0a08a
1 changed files with 5 additions and 0 deletions
  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;