Explorar o código

修改阅读题问题

dusenyao hai 1 ano
pai
achega
41d7074757

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

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