mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-11 09:08:14 +08:00
👽️ 修正方法
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user