From c8e75c275c57a4b6f858ad777eee344b91220dc4 Mon Sep 17 00:00:00 2001 From: ali <ali9696@163.com> Date: 星期四, 09 一月 2025 18:14:58 +0800 Subject: [PATCH] systemInfo.copyRight --- zhitan-vue/src/layout/components/Sidebar/Logo.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/zhitan-vue/src/layout/components/Sidebar/Logo.vue b/zhitan-vue/src/layout/components/Sidebar/Logo.vue index 9fe31c0..6cabb17 100644 --- a/zhitan-vue/src/layout/components/Sidebar/Logo.vue +++ b/zhitan-vue/src/layout/components/Sidebar/Logo.vue @@ -14,9 +14,9 @@ <h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }}</h1> </router-link> </transition> --> - <div class="logo"> - <img v-if="sideTheme === 'theme-dark'" :src="logo" class="sidebar-logo" /> - <img v-else :src="logo2" class="sidebar-logo" /> + <div class="logo" v-if="systemInfo && systemInfo.leftLogo"> + <img v-if="sideTheme === 'theme-dark'" :src="systemInfo.leftLogo" class="sidebar-logo" /> + <img v-else :src="systemInfo.leftLogo" class="sidebar-logo" /> </div> <div class="name" v-if="!collapse" :style="{ color: sideTheme === 'theme-dark' ? '#fff' : '#487FEE' }"> @@ -40,7 +40,7 @@ }, }) -const title = import.meta.env.VITE_APP_TITLE +const title = systemInfo.systemName || import.meta.env.VITE_APP_TITLE const settingsStore = useSettingsStore() const sideTheme = computed(() => settingsStore.sideTheme) </script> @@ -68,8 +68,8 @@ margin-top: 24px; margin-bottom: 15px; .logo { - width: 87px; - height: 30px; + width: 40px; + height: 40px; margin-left: 13px; .sidebar-logo { width: 100%; -- Gitblit v1.9.3