Skip to content

Commit db10683

Browse files
committed
bugfix 修复子菜单选中时,父菜单也高亮的问题
1 parent 3be088e commit db10683

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/layout/components/Menu/src/Menu.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ $prefix-cls: #{$namespace}-menu;
149149
}
150150
151151
// 设置选中时的高亮背景和高亮颜色
152-
.#{$elNamespace}-sub-menu.is-active,
153152
.#{$elNamespace}-menu-item.is-active {
154153
color: var(--left-menu-text-active-color) !important;
155154
background-color: var(--left-menu-bg-active-color) !important;

src/store/modules/permission.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineStore } from 'pinia'
2-
import { store } from '../index'
2+
import { store } from '@/store'
33
import { cloneDeep } from 'lodash-es'
44
import remainingRouter from '@/router/modules/remaining'
55
import { flatMultiLevelRoutes, generateRoute } from '@/utils/routerHelper'

0 commit comments

Comments
 (0)