Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
592ed335
authored
Aug 08, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
c0a127c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
src/components/menu.vue
src/components/menu.vue
View file @
592ed335
...
...
@@ -361,9 +361,14 @@ export default {
if
(
res
.
code
===
0
)
{
const
overviewItem
=
res
.
data
.
data
.
find
(
item
=>
item
.
name
===
"概况"
);
const
menuData
=
res
.
data
.
data
.
filter
(
item
=>
item
.
name
!==
"概况"
);
this
.
index_home
=
overviewItem
;
this
.
menuData
=
menuData
;
const
filteredData
=
menuData
.
filter
(
item
=>
item
.
checked
||
(
item
.
children
&&
item
.
children
.
some
(
child
=>
child
.
checked
))).
map
(
item
=>
{
if
(
item
.
children
&&
item
.
children
.
length
>
0
)
{
item
.
children
=
item
.
children
.
filter
(
child
=>
child
.
checked
);
}
return
item
;
});
this
.
menuData
=
filteredData
;
}
else
{
this
.
$message
({
message
:
res
.
msg
,
...
...
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