From dfb9a735d6adcca3f9742393ce1b0c527e7752dc Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Mon, 26 May 2025 23:21:14 +0800 Subject: [PATCH] =?UTF-8?q?wip:=20=E4=B8=B4=E6=97=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/AppLogo/index.vue | 52 +++++++++++++++++-- .../Menu/components/MenuItemTitle.vue | 4 +- .../NavBar/components/NavbarActions.vue | 42 ++++++++------- src/layouts/components/NavBar/index.vue | 5 +- src/layouts/views/MixLayout.vue | 9 ---- src/layouts/views/TopLayout.vue | 9 +--- 6 files changed, 76 insertions(+), 45 deletions(-) diff --git a/src/layouts/components/AppLogo/index.vue b/src/layouts/components/AppLogo/index.vue index 841784ef..a7a6370a 100644 --- a/src/layouts/components/AppLogo/index.vue +++ b/src/layouts/components/AppLogo/index.vue @@ -37,16 +37,58 @@ defineProps({ color: $sidebar-logo-text-color; } } + + diff --git a/src/layouts/components/NavBar/components/NavbarActions.vue b/src/layouts/components/NavBar/components/NavbarActions.vue index 87ca259f..ef3386ce 100644 --- a/src/layouts/components/NavBar/components/NavbarActions.vue +++ b/src/layouts/components/NavBar/components/NavbarActions.vue @@ -52,7 +52,7 @@
@@ -68,6 +68,13 @@ import { useAppStore, useSettingsStore, useUserStore } from "@/store"; import { SidebarColor, ThemeMode } from "@/enums/settings/theme.enum"; import { LayoutMode } from "@/enums"; +// 导入子组件 +import MenuSearch from "@/components/MenuSearch/index.vue"; +import Fullscreen from "@/components/Fullscreen/index.vue"; +import SizeSelect from "@/components/SizeSelect/index.vue"; +import LangSelect from "@/components/LangSelect/index.vue"; +import Notification from "@/components/Notification/index.vue"; + const { t } = useI18n(); const appStore = useAppStore(); const settingStore = useSettingsStore(); @@ -127,6 +134,13 @@ function logout() { }); }); } + +/** + * 打开系统设置页面 + */ +function handleSettingsClick() { + settingStore.settingsVisible = true; +}