| | |
| | | <template>
|
| | | <div :class="{'has-logo':showLogo}">
|
| | | <div :class="{'has-logo':showLogo}" :style="{ backgroundColor: settings.sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground }">
|
| | | <logo v-if="showLogo" :collapse="isCollapse" />
|
| | | <el-scrollbar wrap-class="scrollbar-wrapper">
|
| | | <el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper">
|
| | | <el-menu
|
| | | :default-active="activeMenu"
|
| | | :collapse="isCollapse"
|
| | | :background-color="variables.menuBg"
|
| | | :text-color="variables.menuText"
|
| | | :background-color="settings.sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground"
|
| | | :text-color="settings.sideTheme === 'theme-dark' ? variables.menuColor : variables.menuLightColor"
|
| | | :unique-opened="true"
|
| | | :active-text-color="settings.theme"
|
| | | :collapse-transition="false"
|
| | | mode="vertical"
|
| | | >
|
| | | <sidebar-item
|
| | | v-for="(route, index) in permission_routes"
|
| | | v-for="(route, index) in sidebarRouters"
|
| | | :key="route.path + index"
|
| | | :item="route"
|
| | | :base-path="route.path"
|
| | |
| | | components: { SidebarItem, Logo },
|
| | | computed: {
|
| | | ...mapState(["settings"]),
|
| | | ...mapGetters(["permission_routes", "sidebar"]),
|
| | | ...mapGetters(["sidebarRouters", "sidebar"]),
|
| | | activeMenu() {
|
| | | const route = this.$route;
|
| | | const { meta, path } = route;
|