mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-06 08:32:51 +08:00
🐛 修复窗口全屏失效
This commit is contained in:
@@ -63,6 +63,7 @@ onMounted(async () => {
|
||||
const width = highestResolution.width;
|
||||
const height = highestResolution.height;
|
||||
if (width && height) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
width > height
|
||||
? (vodAspectRatio.value = width / height)
|
||||
: (vodAspectRatio.value = height / width);
|
||||
@@ -118,7 +119,7 @@ onMounted(async () => {
|
||||
};
|
||||
container.value = new Artplayer(option);
|
||||
container.value?.on("fullscreen", async (state) => {
|
||||
await TauriWindow.getCurrent().setFullscreen(state);
|
||||
await TauriWindow.getCurrentWindow().setFullscreen(state);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user