浏览代码

问题卷清空轨迹和分数

Michael Wang 4 年之前
父节点
当前提交
9405e0a08a
共有 1 个文件被更改,包括 5 次插入0 次删除
  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) {
   if (markResult) {
     markResult.problem = true;
     markResult.problem = true;
     markResult.problemTypeId = problemId;
     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)
     if (markResult.spent > 24 * 60 * 60 * 1000)
       markResult.spent = Date.now() - markResult.spent;
       markResult.spent = Date.now() - markResult.spent;