natasha 2 달 전
부모
커밋
654a58cd36
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) {