From 5f31094e7ec77611010501f216103547734de8f6 Mon Sep 17 00:00:00 2001 From: kubeops Date: Sun, 7 Jul 2024 12:28:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=A0=8F=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Settings/SelectLayoutMode.vue | 103 ++++++++++++++++++ src/components/Settings/index.vue | 97 +++++++++++++++++ .../components/NavigationBar/index.vue | 4 +- 3 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 src/components/Settings/SelectLayoutMode.vue create mode 100644 src/components/Settings/index.vue diff --git a/src/components/Settings/SelectLayoutMode.vue b/src/components/Settings/SelectLayoutMode.vue new file mode 100644 index 00000000..28ff95ec --- /dev/null +++ b/src/components/Settings/SelectLayoutMode.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/src/components/Settings/index.vue b/src/components/Settings/index.vue new file mode 100644 index 00000000..0040bf8a --- /dev/null +++ b/src/components/Settings/index.vue @@ -0,0 +1,97 @@ + + + + + diff --git a/src/layouts/components/NavigationBar/index.vue b/src/layouts/components/NavigationBar/index.vue index e8413e93..4b618cf6 100644 --- a/src/layouts/components/NavigationBar/index.vue +++ b/src/layouts/components/NavigationBar/index.vue @@ -12,6 +12,7 @@ import Notify from "@/components/Notify/index.vue" import ThemeSwitch from "@/components/ThemeSwitch/index.vue" import Screenfull from "@/components/Screenfull/index.vue" import SearchMenu from "@/components/SearchMenu/index.vue" +import Settings from "@/components/Settings/index.vue" import { useDevice } from "@/hooks/useDevice" import { useLayoutMode } from "@/hooks/useLayoutMode" @@ -21,7 +22,7 @@ const router = useRouter() const appStore = useAppStore() const userStore = useUserStore() const settingsStore = useSettingsStore() -const { showNotify, showThemeSwitch, showScreenfull, showSearchMenu } = storeToRefs(settingsStore) +const { showSettings, showNotify, showThemeSwitch, showScreenfull, showSearchMenu } = storeToRefs(settingsStore) /** 切换侧边栏 */ const toggleSidebar = () => { @@ -46,6 +47,7 @@ const logout = () => {
+