瀏覽代碼

答题容错修改

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) {
     getExerciseName(type, question_type, additional_type) {
+      if (this.questionList.length <= 0) return;
       if (type === 'cur') {
       if (type === 'cur') {
         if (this.curQuestionIndex < 0) return '';
         if (this.curQuestionIndex < 0) return '';
         let { type: _type, additional_type: _additional_type } = this.questionList[this.curQuestionIndex];
         let { type: _type, additional_type: _additional_type } = this.questionList[this.curQuestionIndex];