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 = () => {
+