Ver Fonte

成绩查询 questionList 可能为空

Michael Wang há 3 anos atrás
pai
commit
b4184bea0b
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/features/mark/CommonMarkBody.vue

+ 2 - 1
src/features/mark/CommonMarkBody.vue

@@ -315,7 +315,8 @@ async function processSplitConfig() {
       if (useMarkResult) {
         trackLists = markResult.trackList;
       } else {
-        trackLists = store.currentTask.questionList
+        // 成绩查询 questionList 可能为空
+        trackLists = (store.currentTask.questionList || [])
           .map((q) => q.trackList)
           .reduce((acc, t) => {
             acc = acc.concat(t);