⬆️ migrate tauri-rc

This commit is contained in:
目棃
2024-08-02 23:09:42 +08:00
parent 27501acfd2
commit 5c0d5f50fe
16 changed files with 4715 additions and 4380 deletions

View File

@@ -43,7 +43,7 @@ let themeListener: UnlistenFn;
let urlListener: UnlistenFn;
onBeforeMount(async () => {
const win = webviewWindow.getCurrent();
const win = webviewWindow.getCurrentWebviewWindow();
isMain.value = win.label === "TeyvatGuide";
if (isMain.value) {
const title = "Teyvat Guide v" + (await app.getVersion()) + " Beta";
@@ -66,7 +66,7 @@ async function checkResize(): Promise<void> {
});
return;
}
const windowCur = await webviewWindow.getCurrent();
const windowCur = await webviewWindow.getCurrentWebviewWindow();
if (await windowCur.isMaximized()) return;
const designSize = getSize(windowCur.label);
const widthScale = screen.size.width / 1920;