ali
2025-01-13 2f2b09869423f7e98c64f79dc96c62d9a1696f24
zhitan-vue/src/layout/components/Sidebar/Logo.vue
@@ -14,12 +14,12 @@
        <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' }">
    <div class="name" v-if="!collapse" :style="{ color: sideTheme === 'theme-dark' ? '#fff' : '#333' }">
      {{ title }}
    </div>
  </div>
@@ -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>
@@ -58,31 +58,31 @@
.sidebar-logo-container {
  position: relative;
  width: 100%;
  height: 50px;
  line-height: 50px;
  background: #2b2f3a;
  height: 70px;
  line-height: 70px;
  background: #1a235d;
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 15px;
  // margin-top: 24px;
  // margin-bottom: 15px;
  .logo {
    width: 87px;
    height: 30px;
    margin-left: 13px;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    .sidebar-logo {
      width: 100%;
      height: 100%;
    }
  }
  .name {
    width: 150px;
    margin-top: 2px;
    // width: 210px;
    margin-left: 6px;
    font-family: OPPOSans, OPPOSans;
    font-weight: bold;
    font-size: 24px;
    font-size: 20px;
    color: #ffffff;
  }