Bladeren bron

无选项的展示bug fix

zhangjie 6 jaren geleden
bovenliggende
commit
6ce6251fea
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      stmms-web/src/main/webapp/static/report-pdf/js/teaching.js

+ 1 - 0
stmms-web/src/main/webapp/static/report-pdf/js/teaching.js

@@ -209,6 +209,7 @@ function createBasicMainQuestion(dataList) {
 }
 // 选项分析
 function createBasicQuestionOption(data) {
+  if (!data.options || !data.options.length) return;
   var hTmpl = $("#basic-question-option-table").html();
   // 选项多余7个会分组
   var options = sectionArr(data.options, 8);