瀏覽代碼

feat: 问题卷

zhangjie 3 月之前
父節點
當前提交
d184e4fa28
共有 1 個文件被更改,包括 2 次插入5 次删除
  1. 2 5
      src/features/mark/composables/useMarkSubmit.ts

+ 2 - 5
src/features/mark/composables/useMarkSubmit.ts

@@ -61,15 +61,12 @@ export default function useMarkSubmit() {
 
     const problemQs = markStore.currentTask.questionList
       .filter((q) => q.problem)
-      .map((q) => q.mainNumber + "-" + q.subNumber);
+      .map((q, i) => i);
     const questions = markStore.currentTask.questionList.filter(
       (q) => !q.problem
     );
     const scoreList = markResult.scoreList.filter(
-      (_, i) =>
-        !problemQs.includes(
-          questions[i].mainNumber + "-" + questions[i].subNumber
-        )
+      (_, i) => !problemQs.includes(i)
     );
     if (
       scoreList.length !== questions.length ||