🎨 提高主观启动速度(bushi)

This commit is contained in:
BTMuli
2023-10-17 19:47:06 +08:00
parent a8bf9e3c3b
commit a7ad394c4f
2 changed files with 2 additions and 0 deletions

View File

@@ -93,6 +93,7 @@
"width": 1600, "width": 1600,
"height": 900, "height": 900,
"center": true, "center": true,
"visible": false,
"transparent": true "transparent": true
} }
] ]

View File

@@ -34,6 +34,7 @@ onBeforeMount(async () => {
isMain.value = win.label === "TeyvatGuide"; isMain.value = win.label === "TeyvatGuide";
if (isMain.value) { if (isMain.value) {
const title = "Teyvat Guide v" + (await app.getVersion()) + " Beta"; const title = "Teyvat Guide v" + (await app.getVersion()) + " Beta";
if (!(await win.isVisible())) await win.show();
await win.setTitle(title); await win.setTitle(title);
await listenOnInit(); await listenOnInit();
await tauri.invoke("init_app"); await tauri.invoke("init_app");