|
@@ -85,6 +85,7 @@ const isFullscreen = ref(false)
|
|
|
const { proxy } = getCurrentInstance()
|
|
const { proxy } = getCurrentInstance()
|
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
|
|
+const settingsStore = useSettingsStore()
|
|
|
|
|
|
|
|
const visitedViews = computed(() => useTagsViewStore().visitedViews)
|
|
const visitedViews = computed(() => useTagsViewStore().visitedViews)
|
|
|
const routes = computed(() => usePermissionStore().routes)
|
|
const routes = computed(() => usePermissionStore().routes)
|
|
@@ -247,7 +248,7 @@ function toggleFullscreen() {
|
|
|
function onFullscreenChange() {
|
|
function onFullscreenChange() {
|
|
|
isFullscreen.value = !!document.fullscreenElement
|
|
isFullscreen.value = !!document.fullscreenElement
|
|
|
const appMain = document.querySelector('.app-main')
|
|
const appMain = document.querySelector('.app-main')
|
|
|
- if (appMain) {
|
|
|
|
|
|
|
+ if (appMain && !settingsStore.isDark) {
|
|
|
appMain.style.backgroundColor = document.fullscreenElement ? '#fff' : ''
|
|
appMain.style.backgroundColor = document.fullscreenElement ? '#fff' : ''
|
|
|
appMain.style.overflowY = document.fullscreenElement ? 'auto' : ''
|
|
appMain.style.overflowY = document.fullscreenElement ? 'auto' : ''
|
|
|
}
|
|
}
|