Преглед на файлове

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

dsy преди 2 месеца
родител
ревизия
076691888b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/views/book/courseware/preview/components/new_word/NewWordPreview.vue

+ 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) {