Explorar o código

成绩查询 questionList 可能为空

Michael Wang %!s(int64=3) %!d(string=hai) anos
pai
achega
b4184bea0b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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);