|
@@ -2,11 +2,16 @@
|
|
|
<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" />
|
|
|
+ <div v-if="logo" class="sidebar-logo">
|
|
|
+ <img :src="logo" />
|
|
|
+ </div>
|
|
|
<h1 v-else class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }}</h1>
|
|
|
</router-link>
|
|
|
<router-link v-else key="expand" class="sidebar-logo-link" to="/">
|
|
|
- <img v-if="logo" :src="logo" class="sidebar-logo" />
|
|
|
+ <div class="sidebar-logo" v-if="logo">
|
|
|
+ <img :src="logo" />
|
|
|
+ </div>
|
|
|
+
|
|
|
<h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }}</h1>
|
|
|
</router-link>
|
|
|
</transition>
|
|
@@ -15,7 +20,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import variables from '@/assets/styles/variables.module.scss'
|
|
|
-import logo from '@/assets/logo/logo.png'
|
|
|
+import logo from '@/assets/logo/logo2.png'
|
|
|
import useSettingsStore from '@/store/modules/settings'
|
|
|
|
|
|
defineProps({
|
|
@@ -25,7 +30,7 @@ defineProps({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-const title = ref('RuoYi-Vue-Plus');
|
|
|
+const title = ref('数字招商');
|
|
|
const settingsStore = useSettingsStore();
|
|
|
const sideTheme = computed(() => settingsStore.sideTheme);
|
|
|
</script>
|
|
@@ -58,6 +63,13 @@ const sideTheme = computed(() => settingsStore.sideTheme);
|
|
|
height: 32px;
|
|
|
vertical-align: middle;
|
|
|
margin-right: 12px;
|
|
|
+ border-radius: 50%;
|
|
|
+ display: inline-block;
|
|
|
+ overflow: hidden;
|
|
|
+ background-color: #fff;
|
|
|
+ >img{
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
& .sidebar-title {
|