File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 1
1
// 侧边栏
2
2
.sidebar-container >.el-menu {
3
3
width : 100% !important ;
4
+ min-height : 100% ;
4
5
}
5
6
6
7
.sidebar-container .svg-icon {
Original file line number Diff line number Diff line change 50
50
bottom : 0 ;
51
51
left : 0 ;
52
52
z-index : 1001 ;
53
- background : red ;
53
+ overflow-y : auto ;
54
+ & ::-webkit-scrollbar {display :none }
54
55
}
55
56
.main-container {
56
57
min-height : 100% ;
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div >
3
- <el-menu mode =" vertical" theme =" dark" :default-active =" $route.path" :collapse =" isCollapse" >
4
- <sidebar-item :routes =' permission_routers' ></sidebar-item >
5
- </el-menu >
6
- </div >
2
+ <el-menu mode =" vertical" theme =" dark" unique-opened :default-active =" $route.path" :collapse =" isCollapse" >
3
+ <sidebar-item :routes =' permission_routers' ></sidebar-item >
4
+ </el-menu >
7
5
</template >
8
6
7
+
9
8
<script >
10
9
import { mapGetters } from ' vuex' ;
11
10
import SidebarItem from ' ./SidebarItem' ;
22
21
}
23
22
}
24
23
</script >
25
-
26
- <style rel="stylesheet/scss" lang="scss" scoped>
27
- .el-menu {
28
- min-height : 100% ;
29
- }
30
- </style >
You can’t perform that action at this time.
0 commit comments