From e03866f401ea60dd770dbd52159b62a9f28c6920 Mon Sep 17 00:00:00 2001
From: ali <ali9696@163.com>
Date: 星期四, 09 一月 2025 17:21:57 +0800
Subject: [PATCH] 修改登录页获取自定义配置

---
 zhitan-vue/src/layout/components/Sidebar/Logo.vue |   45 +++++++++++++++++++++++++--------------------
 1 files changed, 25 insertions(+), 20 deletions(-)

diff --git a/zhitan-vue/src/layout/components/Sidebar/Logo.vue b/zhitan-vue/src/layout/components/Sidebar/Logo.vue
index 86a54a6..9fe31c0 100644
--- a/zhitan-vue/src/layout/components/Sidebar/Logo.vue
+++ b/zhitan-vue/src/layout/components/Sidebar/Logo.vue
@@ -1,6 +1,9 @@
 <template>
-  <div class="sidebar-logo-container" :class="{ 'collapse': collapse }"
-       :style="{ backgroundColor: sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground }">
+  <div
+    class="sidebar-logo-container"
+    :class="{ collapse: collapse }"
+    :style="{ backgroundColor: sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground }"
+  >
     <!-- <transition name="sidebarLogoFade">
       <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
         <img v-if="logo" :src="logo" class="sidebar-logo" />
@@ -11,33 +14,35 @@
         <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" />
+    <div class="logo">
+      <img v-if="sideTheme === 'theme-dark'" :src="logo" class="sidebar-logo" />
       <img v-else :src="logo2" class="sidebar-logo" />
-    </div> -->
+    </div>
 
-    <div class="name" v-if="!collapse" :style="{color: sideTheme === 'theme-dark' ? '#fff' : '#487FEE'}">{{ title }}</div>
+    <div class="name" v-if="!collapse" :style="{ color: sideTheme === 'theme-dark' ? '#fff' : '#487FEE' }">
+      {{ title }}
+    </div>
   </div>
 </template>
 
 <script setup>
-// import Cookies from 'js-cookie'
-import variables from '@/assets/styles/variables.module.scss'
-import logo from '@/assets/logo/logo-2.png'
-import logo2 from '@/assets/logo/logo-3.png'
-import useSettingsStore from '@/store/modules/settings'
-import { color } from 'echarts';
-// const systemInfo = JSON.parse(sessionStorage.getItem('SystemInfo'))
+import Cookies from "js-cookie"
+import variables from "@/assets/styles/variables.module.scss"
+import logo from "@/assets/logo/logo-2.png"
+import logo2 from "@/assets/logo/logo-3.png"
+import useSettingsStore from "@/store/modules/settings"
+import { color } from "echarts"
+const systemInfo = JSON.parse(Cookies.get("SystemInfo"))
 defineProps({
   collapse: {
     type: Boolean,
-    required: true
-  }
+    required: true,
+  },
 })
 
-const title = import.meta.env.VITE_APP_TITLE;
-const settingsStore = useSettingsStore();
-const sideTheme = computed(() => settingsStore.sideTheme);
+const title = import.meta.env.VITE_APP_TITLE
+const settingsStore = useSettingsStore()
+const sideTheme = computed(() => settingsStore.sideTheme)
 </script>
 
 <style lang="scss" scoped>
@@ -72,7 +77,7 @@
     }
   }
   .name {
-    width: 100%;
+    width: 150px;
     margin-top: 2px;
     margin-left: 6px;
     font-family: OPPOSans, OPPOSans;
@@ -133,4 +138,4 @@
     }
   }
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3