瀏覽代碼

fix: 上传题卡预览问题

zhangjie 6 月之前
父節點
當前提交
d82965e0a7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/card/views/CardPreview.vue

+ 1 - 1
src/modules/card/views/CardPreview.vue

@@ -165,7 +165,7 @@ export default {
       const iframeDom = document.createElement("iframe");
       document.getElementById("preview-frame").appendChild(iframeDom);
       const wwidth = window.innerWidth;
-      const wheight = window.innerHeight - 10;
+      const wheight = window.innerHeight - 60;
       iframeDom.style.cssText = `width: ${wwidth}px;height: ${wheight}px;border:none;outline:none;`;
       const iframeDoc = iframeDom.contentDocument;
       iframeDoc.open();