En route 1 рік тому
батько
коміт
3f03218951
2 змінених файлів з 2 додано та 1 видалено
  1. 1 0
      pages2/bank/questionBank.vue
  2. 1 1
      pages2/bank/questionBankContinue.vue

+ 1 - 0
pages2/bank/questionBank.vue

@@ -1220,6 +1220,7 @@
 						item.ques = [];
 						item.current = 0;
 						let ansArr = [];
+						item.jsonStr = item.jsonStr || []
 						item.jsonStr.forEach((json, index) => {
 							if (json.type == 1) {
 								ansArr[index] = json.answerQuestion;

+ 1 - 1
pages2/bank/questionBankContinue.vue

@@ -1040,7 +1040,7 @@ export default {
       this.$api.examReport(this.recordId).then((res) => {
         let json = JSON.parse(res.data.data.historyExamJson);
         this.examData = res.data.data;
-        this.questionList = json;
+        this.questionList = json || [];
 		console.log(json,'json')
         this.getCollectInfo(this.current);
       });