From 6a39aa127b221593cf1c175b096ec6e9acf08c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Sat, 3 Aug 2024 21:37:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E5=85=A8=E5=B1=8F=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/post/tp-vod.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }); });