2
0
Эх сурвалжийг харах

成绩查询 questionList 可能为空

Michael Wang 3 жил өмнө
parent
commit
b4184bea0b

+ 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);