|
@@ -2,11 +2,11 @@
|
|
<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">
|
|
<transition name="sidebarLogoFade">
|
|
<router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
|
|
<router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
|
|
- <img v-if="logo" :src="logo" class="sidebar-logo" />
|
|
|
|
|
|
+ <img v-if="logo" src="@/assets/images/logo.png" class="sidebar-logo" />
|
|
<h1 v-else class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }" style="padding-left: 10px">{{ title }}</h1>
|
|
<h1 v-else class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }" style="padding-left: 10px">{{ title }}</h1>
|
|
</router-link>
|
|
</router-link>
|
|
<router-link v-else key="expand" class="sidebar-logo-link" to="/">
|
|
<router-link v-else key="expand" class="sidebar-logo-link" to="/">
|
|
- <img v-if="logo" :src="logo" class="sidebar-logo" />
|
|
|
|
|
|
+ <img v-if="logo" src="@/assets/images/logo.png" class="sidebar-logo" />
|
|
<span class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }" style="padding-left: 10px">{{ title }}</span>
|
|
<span class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }" style="padding-left: 10px">{{ title }}</span>
|
|
</router-link>
|
|
</router-link>
|
|
</transition>
|
|
</transition>
|
|
@@ -51,9 +51,10 @@ export default {
|
|
getDept(deptId).then((response) => {
|
|
getDept(deptId).then((response) => {
|
|
const data = response.data;
|
|
const data = response.data;
|
|
if (data.logoName) {
|
|
if (data.logoName) {
|
|
- this.title = data.logoName.length > 8 ? data.logoName.slice(0, 8) : data.logoName;
|
|
|
|
|
|
+ // this.title = data.logoName.length > 8 ? data.logoName.slice(0, 8) : data.logoName;
|
|
|
|
+ this.title = "云组态平台"
|
|
} else {
|
|
} else {
|
|
- this.title = 'FastBee';
|
|
|
|
|
|
+ this.title = '云组态平台';
|
|
}
|
|
}
|
|
if (data.deptLogo) {
|
|
if (data.deptLogo) {
|
|
this.logo = this.baseUrl + data.deptLogo;
|
|
this.logo = this.baseUrl + data.deptLogo;
|
|
@@ -122,6 +123,8 @@ export default {
|
|
&.collapse {
|
|
&.collapse {
|
|
.sidebar-logo {
|
|
.sidebar-logo {
|
|
margin-right: 0px;
|
|
margin-right: 0px;
|
|
|
|
+ width: 30px; // 30
|
|
|
|
+ height: 30px; // 30
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|