瀏覽代碼

成绩查询 questionList 可能为空

Michael Wang 3 年之前
父節點
當前提交
b4184bea0b
共有 1 個文件被更改,包括 2 次插入1 次删除
  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);