mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🐛 修正label&子窗口回正异常
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user