소스 검색

答题容错修改

dusenyao 1 년 전
부모
커밋
dafdfb2291
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/views/exercise_questions/answer/index.vue

+ 1 - 0
src/views/exercise_questions/answer/index.vue

@@ -644,6 +644,7 @@ export default {
       });
     },
     getExerciseName(type, question_type, additional_type) {
+      if (this.questionList.length <= 0) return;
       if (type === 'cur') {
         if (this.curQuestionIndex < 0) return '';
         let { type: _type, additional_type: _additional_type } = this.questionList[this.curQuestionIndex];