chenrui  3 years ago
parent
commit
8c74ebb795
2 changed files with 6 additions and 13 deletions
  1. 4 12
      src/layout/components/Sidebar/SidebarItem.vue
  2. 2 1
      src/styles/sidebar.scss

+ 4 - 12
src/layout/components/Sidebar/SidebarItem.vue

@@ -162,19 +162,8 @@ export default {
   //设置字体颜色
   color: #ffffff !important;
 }
-
-// ::v-deep .el-menu-item.is-active:hover {
-//   //设置背景颜色
-//   background-color: #2d67e3 !important;
-//   //设置字体颜色
-//   color: #ffffff !important;
-// }
-
-// // ::v-deep .el-submenu__title:hover {
-// //   background: red !important;
-// // }
 ::v-deep .el-menu-item:hover {
-  background: #2d67e3 !important;
+  // background: #2d67e3 !important;
   color: #fff !important;
 }
 ::v-deep .el-menu-item {
@@ -183,6 +172,9 @@ export default {
 // ::v-deep .el-submenu__title.is-active {
 //   background-color: #6db6ff !important;
 // }
+// .pathNamecosy:hover {
+//   background-image: #2d67e3 !important;
+// }
 .nav_item {
   width: 36px;
   height: 36px;

+ 2 - 1
src/styles/sidebar.scss

@@ -88,7 +88,8 @@
 
     .submenu-title-noDropdown {
       &:hover {
-        background-color: initial !important;
+        // background-color: initial !important;
+        background: #2d67e3 !important;
       }
     }