Skip to content

Commit

Permalink
优化侧边栏折叠后的显示
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Oct 7, 2018
1 parent ec78f2f commit 6418a1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/views/layout/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
text-color="#bfcbd9"
active-text-color="#409EFF"
style="border:none"
:collapse="isCollapse"

:default-active="$route.path">

<sidebar-item :routes='permission_routers'></sidebar-item>
Expand All @@ -24,6 +26,9 @@ export default {
...mapGetters(["permission_routers"]),
sidebar() {
return this.$store.getters.sidebar.opened;
},
isCollapse() {
return !this.$store.getters.sidebar.opened;
}
},
created() {
Expand Down

0 comments on commit 6418a1e

Please sign in to comment.