This commit is contained in:
Leo
2026-01-16 20:09:49 +08:00
parent 2ed4625bfd
commit 0053741c05
3 changed files with 8 additions and 46 deletions

View File

@@ -1,10 +1,10 @@
<template>
<div :class="{'has-logo':showLogo}" :style="{ backgroundColor: settings.sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground }">
<logo v-if="showLogo" :collapse="isCollapse" />
<logo v-if="showLogo" :collapse="false" />
<el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper">
<el-menu
:default-active="activeMenu"
:collapse="isCollapse"
:collapse="false"
:background-color="settings.sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground"
:text-color="settings.sideTheme === 'theme-dark' ? variables.menuColor : variables.menuLightColor"
:unique-opened="true"
@@ -48,9 +48,6 @@ export default {
},
variables() {
return variables
},
isCollapse() {
return !this.sidebar.opened
}
}
}