revert: 还原深浅主题切换

This commit is contained in:
2025-03-19 20:46:38 +08:00
parent 7d4beb0283
commit be7c310f72
6 changed files with 94 additions and 207 deletions

View File

@@ -2,7 +2,7 @@
<a-row justify="end" align="center">
<a-space size="medium">
<!-- 搜索 -->
<Search />
<Search v-if="isDesktop" />
<!-- 项目配置 -->
<a-tooltip content="项目配置" position="bl">
<a-button size="mini" class="gi_hover_btn" @click="SettingDrawerRef?.open">
@@ -43,7 +43,7 @@
<!-- 暗黑模式切换 -->
<a-tooltip content="主题切换" position="bottom">
<ToggleDark />
<GiThemeBtn></GiThemeBtn>
</a-tooltip>
<!-- 管理员账户 -->
@@ -80,10 +80,11 @@ import Search from './Search.vue'
import { getUnreadMessageCount } from '@/apis'
import { useUserStore } from '@/stores'
import { getToken } from '@/utils/auth'
import { useBreakpoint } from '@/hooks'
import { useBreakpoint, useDevice } from '@/hooks'
defineOptions({ name: 'HeaderRight' })
const { isDesktop } = useDevice()
const { breakpoint } = useBreakpoint()
let socket: WebSocket
onBeforeUnmount(() => {