Browse Source

修改阅读题问题

dusenyao 1 year ago
parent
commit
41d7074757

+ 2 - 1
src/views/exercise_questions/create/components/common/QuestionMixin.js

@@ -52,6 +52,7 @@ const mixin = {
     if (this.isChild) {
     if (this.isChild) {
       if (this.isChange) {
       if (this.isChange) {
         this.$emit('update:isChange', false);
         this.$emit('update:isChange', false);
+        this.isGetInfo = true;
         return;
         return;
       }
       }
       GetQuestionInfo({ question_id: this.questionId })
       GetQuestionInfo({ question_id: this.questionId })
@@ -59,8 +60,8 @@ const mixin = {
           if (!question.content) return;
           if (!question.content) return;
           this.data = JSON.parse(question.content);
           this.data = JSON.parse(question.content);
           this.$emit('loaded');
           this.$emit('loaded');
-          this.refreshPreviewData();
           this.isGetInfo = true;
           this.isGetInfo = true;
+          this.refreshPreviewData();
         })
         })
         .catch(() => {});
         .catch(() => {});
     }
     }