mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
⬆️ migrate tauri-rc
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user