mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-10 08:58:15 +08:00
🎨 提高主观启动速度(bushi)
This commit is contained in:
@@ -93,6 +93,7 @@
|
|||||||
"width": 1600,
|
"width": 1600,
|
||||||
"height": 900,
|
"height": 900,
|
||||||
"center": true,
|
"center": true,
|
||||||
|
"visible": false,
|
||||||
"transparent": true
|
"transparent": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user