Browse Source

顶部菜单导航栏增加激活背景色

luoaoxuan 1 năm trước cách đây
mục cha
commit
c2f927e4b0

+ 14 - 1
src/assets/styles/fixed/element.scss

@@ -140,4 +140,17 @@
 .el-message-box > .el-message-box__content {
     max-height: 320px;
     overflow: auto;
-}
+}
+
+.ibps-theme-header-menu__content{
+    .el-menu .el-menu-item:hover{
+        background: #e0f0ee !important;
+    }
+    .el-menu .el-menu-item.is-active {
+        background: #e0f0ee !important;
+    }
+    .el-submenu .el-submenu__title:hover {
+        background: #e0f0ee !important;
+    }
+}
+

+ 3 - 1
src/layout/header-aside/components/menu-header/index.js

@@ -29,7 +29,9 @@ export default {
   watch: {
     'activeHeader': {
       handler(val) {
-        this.active = this.activeHeader
+        if(this.$route.name !== 'dashboard') {
+            this.active = this.activeHeader
+        }
       },
       immediate: true
     }