Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
EcomWeb
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2026-04-12 12:05:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0a407cbe27c570db36dfdd420ed1cca9c099ecd8
0a407cbe
1 parent
4220f6ca
菜单初始化逻辑修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/store/modules/permission.js
src/store/modules/permission.js
View file @
0a407cb
...
...
@@ -209,14 +209,14 @@ function routeItemInfo(data) {
if
(
item
.
nodeType
==
'1'
)
{
const
isParent
=
item
.
parentId
==
0
&&
item
.
children
.
length
==
0
;
const
route
=
{
path
:
item
.
path
,
path
:
item
.
path
?
item
.
path
:
'/'
,
component
:
"Layout"
,
alwaysShow
:
true
,
hidden
:
false
,
meta
:
{
title
:
item
.
name
,
icon
:
item
.
icon
},
children
:
!
isParent
?
item
.
children
.
map
((
child
)
=>
({
path
:
child
.
path
,
path
:
child
.
path
?
child
.
path
:
'/'
,
component
:
`
${
child
.
path
}
`
,
hidden
:
child
.
nodeType
==
'1'
?
false
:
true
,
name
:
child
.
name
,
...
...
@@ -224,7 +224,7 @@ function routeItemInfo(data) {
}))
:
[
{
path
:
item
.
path
,
path
:
item
.
path
?
item
.
path
:
'/'
,
component
:
`
${
item
.
path
}
`
,
hidden
:
false
,
name
:
item
.
name
,
...
...
Please
register
or
login
to post a comment