feat: 移动端 header 中添加主题切换图标, 菜单中隐藏

This commit is contained in:
CH-122
2025-08-15 15:36:25 +08:00
parent b26891261c
commit 00d3c563e2
2 changed files with 23 additions and 2 deletions

View File

@@ -117,7 +117,7 @@
</div>
<!-- 解决动态样式的水合错误 -->
<ClientOnly>
<ClientOnly v-if='!isMobile'>
<div class="menu-footer">
<div class="menu-footer-btn" @click="cycleTheme">
<i :class="iconClass"></i>
@@ -133,6 +133,9 @@ import { ref, computed, watch, onMounted } from 'vue'
import { themeState, cycleTheme, ThemeMode } from '~/utils/theme'
import { authState } from '~/utils/auth'
import { fetchUnreadCount, notificationState } from '~/utils/notification'
import { useIsMobile } from '~/utils/screen'
const isMobile = useIsMobile()
const config = useRuntimeConfig()
const API_BASE_URL = config.public.apiBaseUrl