👽️ 修正方法

This commit is contained in:
目棃
2024-08-18 12:21:53 +08:00
parent 3a8f1a2fa3
commit 489d45175b

View File

@@ -66,9 +66,9 @@ onMounted(async () => {
}
videoRef.value?.addEventListener("fullscreenchange", async () => {
if (document.fullscreenElement) {
await TauriWindow.getCurrent().setFullscreen(true);
await TauriWindow.getCurrentWindow().setFullscreen(true);
} else {
await TauriWindow.getCurrent().setFullscreen(false);
await TauriWindow.getCurrentWindow().setFullscreen(false);
}
});
});