mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 13:03:30 +08:00
解决 frame 内变量问题
This commit is contained in:
@@ -65,16 +65,9 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
frameInit() {
|
||||
if (!this.showFrame) return;
|
||||
let ctx = {
|
||||
quickcommand,
|
||||
utools,
|
||||
parent: undefined,
|
||||
};
|
||||
Object.assign(this.cfw, _.cloneDeep(ctx));
|
||||
},
|
||||
frameLoad() {
|
||||
this.cfw.quickcommand = _.cloneDeep(quickcommand);
|
||||
this.cfw.utools = _.cloneDeep(utools);
|
||||
this.frameHeight = Math.min(
|
||||
this.cfw.document.documentElement.getBoundingClientRect().height,
|
||||
this.maxHeight
|
||||
@@ -82,9 +75,6 @@ export default {
|
||||
this.$emit("frameLoad");
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.frameInit();
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user