mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-07-01 13:32:45 +08:00
微调
This commit is contained in:
parent
5c0c2e1f7f
commit
54790b5ea5
@ -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);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user