diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 21b0fd4..e0e843b 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -85,6 +85,7 @@ const isFullscreen = ref(false) const { proxy } = getCurrentInstance() const route = useRoute() const router = useRouter() +const settingsStore = useSettingsStore() const visitedViews = computed(() => useTagsViewStore().visitedViews) const routes = computed(() => usePermissionStore().routes) @@ -247,7 +248,7 @@ function toggleFullscreen() { function onFullscreenChange() { isFullscreen.value = !!document.fullscreenElement const appMain = document.querySelector('.app-main') - if (appMain) { + if (appMain && !settingsStore.isDark) { appMain.style.backgroundColor = document.fullscreenElement ? '#fff' : '' appMain.style.overflowY = document.fullscreenElement ? 'auto' : '' }