This commit is contained in:
fofolee 2022-04-29 00:30:45 +08:00
parent 5c0c2e1f7f
commit 54790b5ea5

View File

@ -89,9 +89,9 @@ export default {
}; };
Object.assign(cfw, ctx); Object.assign(cfw, ctx);
cfw.onload = () => { cfw.onload = () => {
this.frameHeight = cfw.document.body.innerText let clientHeight =
? cfw.document.documentElement.getBoundingClientRect().height cfw.document.documentElement.getBoundingClientRect().height;
: 0; this.frameHeight = clientHeight === 20 ? 0 : clientHeight;
this.$emit("frameLoad", this.frameHeight); this.$emit("frameLoad", this.frameHeight);
}; };
}, },