Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
db106834
authored
Feb 29, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix 修复子菜单选中时,父菜单也高亮的问题
parent
3be088e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
+1
-2
src/layout/components/Menu/src/Menu.vue
+0
-1
src/store/modules/permission.ts
+1
-1
No files found.
src/layout/components/Menu/src/Menu.vue
View file @
db106834
...
@@ -149,7 +149,6 @@ $prefix-cls: #{$namespace}-menu;
...
@@ -149,7 +149,6 @@ $prefix-cls: #{$namespace}-menu;
}
}
//
设置选中时的高亮背景和高亮颜色
//
设置选中时的高亮背景和高亮颜色
.
#
{
$elNamespace
}
-sub-menu
.is-active
,
.
#
{
$elNamespace
}
-menu-item
.is-active
{
.
#
{
$elNamespace
}
-menu-item
.is-active
{
color
:
var
(
--left-menu-text-active-color
)
!important
;
color
:
var
(
--left-menu-text-active-color
)
!important
;
background-color
:
var
(
--left-menu-bg-active-color
)
!important
;
background-color
:
var
(
--left-menu-bg-active-color
)
!important
;
...
...
src/store/modules/permission.ts
View file @
db106834
import
{
defineStore
}
from
'pinia'
import
{
defineStore
}
from
'pinia'
import
{
store
}
from
'
../index
'
import
{
store
}
from
'
@/store
'
import
{
cloneDeep
}
from
'lodash-es'
import
{
cloneDeep
}
from
'lodash-es'
import
remainingRouter
from
'@/router/modules/remaining'
import
remainingRouter
from
'@/router/modules/remaining'
import
{
flatMultiLevelRoutes
,
generateRoute
}
from
'@/utils/routerHelper'
import
{
flatMultiLevelRoutes
,
generateRoute
}
from
'@/utils/routerHelper'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment