fix: 日志管理

This commit is contained in:
2024-08-01 15:54:11 +08:00
parent 34e858987a
commit 4dcd5b555a
5 changed files with 38 additions and 22 deletions

View File

@@ -2,11 +2,11 @@
<div class="sidebar-logo-container" :class="{'collapse':collapse}" :style="{ backgroundColor: sideTheme === 'theme-dark' ? variables.menuBg : 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" />
<img v-if="logo" :src="logo" class="sidebar-logo">
<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" />
<img v-if="logo" :src="logo" class="sidebar-logo">
<h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }} </h1>
</router-link>
</transition>
@@ -24,6 +24,12 @@ export default {
required: true
}
},
data() {
return {
title: '龙电华鑫铜箔LMS',
logo: Logo
}
},
computed: {
variables() {
return variables
@@ -31,12 +37,6 @@ export default {
sideTheme() {
return this.$store.state.settings.sideTheme
}
},
data() {
return {
title: '龙电宁鑫铜箔LMS',
logo: Logo
}
}
}
</script>