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);
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);
};
},