fix(projects): 修复主题相关,自适应操作系统暗黑模式

This commit is contained in:
Soybean
2021-10-25 17:57:43 +08:00
parent 4c85569b76
commit bfa42d769d
11 changed files with 301 additions and 187 deletions

View File

@ -19,6 +19,7 @@
<div class="flex justify-end h-full">
<gihub-site />
<full-screen />
<theme-mode />
<user-avatar />
<setting-drawer-button v-if="showSettingButton" />
</div>
@ -30,7 +31,15 @@
import { computed } from 'vue';
import { NLayoutHeader } from 'naive-ui';
import { useThemeStore } from '@/store';
import { GlobalBreadcrumb, UserAvatar, MenuCollapse, FullScreen, GihubSite, SettingDrawerButton } from './components';
import {
GlobalBreadcrumb,
UserAvatar,
MenuCollapse,
ThemeMode,
FullScreen,
GihubSite,
SettingDrawerButton
} from './components';
import { GlobalLogo } from '../common';
import HeaderMenu from './components/HeaderMenu.vue';