Kaynağa Gözat

Merge branch 'lhd'

natasha 5 gün önce
ebeveyn
işleme
35ed3404ee

+ 10 - 0
src/views/book/courseware/create/components/question/video_interaction/ExerciseAdd.vue

@@ -98,6 +98,9 @@ export default {
       loading: false,
       content: null,
       exercise_id: '',
+      property: {
+        isGetContent: true, // 是否已获取内容
+      },
     };
   },
   computed: {
@@ -151,6 +154,7 @@ export default {
           this.exercise_id = this.exerciseContent.exercise_id;
 
           this.$nextTick(() => {
+            this.$refs.component.property = this.property;
             this.$refs.setting.setSetting(this.$refs.component.data.property, {});
           });
         } else {
@@ -158,6 +162,9 @@ export default {
           this.title = '';
           this.typeValue = 'select';
           this.exercise_id = '';
+          this.$nextTick(() => {
+            this.$refs.component.property = this.property;
+          });
         }
       },
       immediate: true,
@@ -214,6 +221,9 @@ export default {
     },
     handleChnageType() {
       this.content = null;
+      this.$nextTick(() => {
+        this.$refs.component.property = this.property;
+      });
     },
   },
 };