From 54790b5ea550131ab27f013afe95d6577261dc15 Mon Sep 17 00:00:00 2001 From: fofolee Date: Fri, 29 Apr 2022 00:30:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ResultArea.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ResultArea.vue b/src/components/ResultArea.vue index 5d63028..388ecf6 100644 --- a/src/components/ResultArea.vue +++ b/src/components/ResultArea.vue @@ -89,9 +89,9 @@ export default { }; Object.assign(cfw, ctx); cfw.onload = () => { - this.frameHeight = cfw.document.body.innerText - ? cfw.document.documentElement.getBoundingClientRect().height - : 0; + let clientHeight = + cfw.document.documentElement.getBoundingClientRect().height; + this.frameHeight = clientHeight === 20 ? 0 : clientHeight; this.$emit("frameLoad", this.frameHeight); }; },