From a2f1bf6372166ab77510e8362157d4b85fe7bf49 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 22 Mar 2026 15:57:22 +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 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index e0ece10..b621120 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -258,7 +258,10 @@ function updateArrowState() { function toggleFullscreen() { if (!document.fullscreenElement) { - document.documentElement.requestFullscreen() + const appMain = document.querySelector('.app-main') + if (appMain) { + appMain.requestFullscreen() + } } else { document.exitFullscreen() } @@ -266,6 +269,11 @@ function toggleFullscreen() { function onFullscreenChange() { isFullscreen.value = !!document.fullscreenElement + const appMain = document.querySelector('.app-main') + if (appMain) { + appMain.style.backgroundColor = document.fullscreenElement ? '#fff' : '' + appMain.style.overflowY = document.fullscreenElement ? 'auto' : '' + } } function handleDropdownCommand(command) {