Commit 2526f95d authored by 黄奎's avatar 黄奎

1

parent 98d4e700
...@@ -451,16 +451,16 @@ ...@@ -451,16 +451,16 @@
} }
} }
//计算iframe高度 // //计算iframe高度
const iframe = document.getElementsByName("myIframe"); // const iframe = document.getElementsByName("myIframe");
if (iframe) { // if (iframe) {
const iframeWindow = iframe.contentWindow; // const iframeWindow = iframe.contentWindow;
if (iframeWindow && iframeWindow.document && iframeWindow.document.readyState === 'complete') { // if (iframeWindow && iframeWindow.document && iframeWindow.document.readyState === 'complete') {
const body = iframeWindow.document.body; // const body = iframeWindow.document.body;
const viewportHeight = iframeWindow.innerHeight; // const viewportHeight = iframeWindow.innerHeight;
this.myIframeHeigth = body.scrollHeight || viewportHeight; // this.myIframeHeigth = body.scrollHeight || viewportHeight;
} // }
} // }
this.iframeLoading = false; this.iframeLoading = false;
}, },
// 添加编辑模版 // 添加编辑模版
...@@ -477,7 +477,6 @@ ...@@ -477,7 +477,6 @@
} }
} }
); );
}, },
//重新加载行程特色 //重新加载行程特色
ReLoadFeature() { ReLoadFeature() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment