From 5a33147f56b3f4503129e8a02130f8ccc9b92205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E8=82=83?= <15833576927@163.com> Date: Mon, 13 May 2024 17:26:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Navbar.vue | 25 +++++++++++++++++++------ src/layout/index.vue | 4 ++-- src/store/modules/app.js | 2 +- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 05e15af..473d20f 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -1,6 +1,7 @@ @@ -60,11 +68,12 @@ import RuoYiDoc from '@/components/RuoYi/Doc' import useAppStore from '@/store/modules/app' import useUserStore from '@/store/modules/user' import useSettingsStore from '@/store/modules/settings' +import defaultSettings from "@/settings.js"; const appStore = useAppStore() const userStore = useUserStore() const settingsStore = useSettingsStore() - +const title = defaultSettings.title function toggleSideBar() { appStore.toggleSideBar() } @@ -164,7 +173,7 @@ function setLayout() { } .avatar-container { - margin-right: 40px; + margin-right: 10px; .avatar-wrapper { margin-top: 5px; @@ -187,5 +196,9 @@ function setLayout() { } } } + .user-name{ + display: flex; + align-items: center; + } } diff --git a/src/layout/index.vue b/src/layout/index.vue index c4d654e..256efd5 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -1,6 +1,6 @@