🐛 修正label&子窗口回正异常

This commit is contained in:
目棃
2024-09-06 12:20:50 +08:00
parent 599f9273e2
commit ee9f9b7acd
3 changed files with 11 additions and 10 deletions

View File

@@ -52,8 +52,7 @@ onBeforeMount(async () => {
await core.invoke("init_app");
urlListener = await getDeepLink();
}
if (appStore.needResize === undefined) appStore.needResize = true;
if (appStore.needResize) await checkResize();
if (appStore.needResize !== "false") await checkResize();
await win.show();
});
@@ -85,7 +84,7 @@ async function checkResize(): Promise<void> {
function getSize(label: string): PhysicalSize {
if (label === "TeyvatGuide") return new PhysicalSize(1600, 900);
if (label === "Sub_Window" || label === "Dev_JSON") return new PhysicalSize(960, 720);
if (label === "Sub_window" || label === "Dev_JSON") return new PhysicalSize(960, 720);
return new PhysicalSize(1280, 720);
}