Skip to content

Commit

Permalink
Merge branch 'GeekQiaQia:main' into wc-main
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs authored Oct 13, 2021
2 parents 1612906 + 552cf72 commit cc1be1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/layout/components/Sidebar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
<div :class="{ 'has-logo': showLogo }">
<logo v-if="showLogo" :collapse="isCollapse" />
<el-scrollbar wrap-class="scrollbar-wrapper">
<el-menu :router="true" :unique-opened="false" :default-active="activeMenu" class="el-menu-vertical" :collapse="isCollapse" background-color="#545c64" text-color="#fff">
<el-menu
:router="true"
:unique-opened="false"
:default-active="activeMenu"
class="el-menu-vertical"
:collapse="isCollapse"
background-color="#545c64"
text-color="#fff">
<!--递归路由对象-->
<sidebar-item v-for="route in routes" :key="route.path" :item="route" :base-path="route.path" />
</el-menu>
Expand Down
2 changes: 0 additions & 2 deletions src/styles/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@
overflow: hidden;

& > .el-sub-menu__title {
padding: 0 !important;

.svg-icon {
margin-left: 20px;
}
Expand Down

0 comments on commit cc1be1c

Please sign in to comment.