Skip to content

Commit

Permalink
🐛 修复窗口全屏失效
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Aug 3, 2024
1 parent 5c0d5f5 commit 6a39aa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/post/tp-vod.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
});
});
Expand Down

0 comments on commit 6a39aa1

Please sign in to comment.