diff --git a/src/components/post/tp-vod.vue b/src/components/post/tp-vod.vue index 1c78c4bd..c9bc4fec 100644 --- a/src/components/post/tp-vod.vue +++ b/src/components/post/tp-vod.vue @@ -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); }); });