修复主页面因关开机导致的窗口变化问题

This commit is contained in:
miao 2023-02-22 14:08:12 +08:00
parent ba2594addf
commit a380a132b7
1 changed files with 2 additions and 8 deletions

View File

@ -343,10 +343,6 @@ export default defineComponent({
nextTick(() => {
show_windows_flag.value = true;
});
if (wall.value) {
let teph = wall.value?.clientHeight / offsetHeight;
let tepw = wall.value?.clientWidth / offsetWidth;
}
}, 100);
};
@ -357,8 +353,6 @@ export default defineComponent({
const last_context_menu_pos_x = ref(0);
const last_context_menu_pos_y = ref(0);
let offsetHeight = 0;
let offsetWidth = 0;
const plan_running = computed(
() => $store.state.current_running_plan.trim() != ""
);
@ -729,8 +723,6 @@ export default defineComponent({
let monitorList: any = [];
if (a && wall_dom) {
offsetHeight = wall_dom.clientHeight;
offsetWidth = wall_dom.clientHeight;
a.forEach((element) => {
let item: test_monitor = new test_monitor(0, 0, 0);
item.h = element.h;
@ -756,6 +748,8 @@ export default defineComponent({
}
});
}
refresh_windows_pos();
}
}
};