diff --git a/src/components/ScrollBar/index.vue b/src/components/ScrollBar/index.vue
index 8ef203be..00e81293 100644
--- a/src/components/ScrollBar/index.vue
+++ b/src/components/ScrollBar/index.vue
@@ -41,14 +41,16 @@ export default {
diff --git a/src/styles/sidebar.scss b/src/styles/sidebar.scss
index 1a854828..7d826cd2 100644
--- a/src/styles/sidebar.scss
+++ b/src/styles/sidebar.scss
@@ -1,3 +1,5 @@
+@import './variables.scss';
+
#app {
// 主体区域
.main-container {
@@ -61,7 +63,7 @@
text-align: left;
text-indent: 20px;
top: 0px;
- background-color: #2B2C2D!important;
+ background-color: $subMenuBg!important;
opacity: 1;
}
}
@@ -89,9 +91,12 @@
.nest-menu .el-submenu>.el-submenu__title,
.el-submenu .el-menu-item {
min-width: 180px!important;
- background-color: #2B2C2D!important;
+ background-color: $subMenuBg!important;
&:hover {
- background-color: rgb(67, 74, 80)!important;
+ background-color: $menuHover!important;
}
}
+ .el-menu--collapse .el-menu .el-submenu{
+ min-width: 180px!important;
+ }
}
diff --git a/src/styles/variables.scss b/src/styles/variables.scss
index bcfb67ce..acc77a82 100644
--- a/src/styles/variables.scss
+++ b/src/styles/variables.scss
@@ -6,3 +6,8 @@ $green: #30B08F;
$tiffany: #4AB7BD;
$yellow:#FEC171;
$panGreen: #30B08F;
+
+//sidebar
+$menuBg:#304156;
+$subMenuBg:#1f2d3d;
+$menuHover:#001528;
diff --git a/src/views/layout/components/Sidebar/index.vue b/src/views/layout/components/Sidebar/index.vue
index a8028d0d..80c88ee6 100644
--- a/src/views/layout/components/Sidebar/index.vue
+++ b/src/views/layout/components/Sidebar/index.vue
@@ -1,7 +1,6 @@
-
+