From 13515f40b1219cc85e5bace95cfd46771cf19c02 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 22 Mar 2026 16:01:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96tag=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E4=B8=BA=E9=A1=B5=E7=AD=BE=E5=86=85=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TagsView/index.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 203445c..421a76e 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -258,16 +258,24 @@ function updateArrowState(): void { }) } -function toggleFullscreen(): void { +function toggleFullscreen() { if (!document.fullscreenElement) { - document.documentElement.requestFullscreen() + const appMain = document.querySelector('.app-main') as HTMLElement + if (appMain) { + appMain.requestFullscreen() + } } else { document.exitFullscreen() } } -function onFullscreenChange(): void { +function onFullscreenChange() { isFullscreen.value = !!document.fullscreenElement + const appMain = document.querySelector('.app-main') as HTMLElement + if (appMain) { + appMain.style.backgroundColor = document.fullscreenElement ? '#fff' : '' + appMain.style.overflowY = document.fullscreenElement ? 'auto' : '' + } } function handleDropdownCommand(command: string): void {