Kaynağa Gözat

Merge branch 'master' of http://60.205.254.193:3000/GCLS/eep_page

dsy 2 ay önce
ebeveyn
işleme
076691888b

+ 1 - 1
src/views/book/courseware/preview/components/new_word/NewWordPreview.vue

@@ -1694,7 +1694,7 @@ export default {
       this.width = `${totalWidth - (this.data.property.sn_display_mode === 'true' ? 15 : 0)}`;
     });
 
-    this.dataHeight = this.$refs.previewContainer.style.height;
+    this.dataHeight = this.$refs.previewContainer ? this.$refs.previewContainer.style.height : 0;
   },
   methods: {
     handleShow(obj) {