Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1
Commits
1f9e8c95
Commit
1f9e8c95
authored
Jan 25, 2022
by
tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改菜单显示问题
parent
325f0f97
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
index.vue
src/components/layout/header/index.vue
+22
-5
mock.js
src/components/layout/header/mock.js
+0
-1
No files found.
src/components/layout/header/index.vue
View file @
1f9e8c95
...
...
@@ -98,11 +98,13 @@ export default {
computed
:
{
navList
()
{
let
list
=
[];
nav
.
forEach
(
el
=>
{
if
(
!
el
.
isHiddenMenu
)
{
list
.
push
(
el
);
}
})
this
.
hiddenNavItem
(
nav
,
list
)
// nav.forEach(el => {
// if (!el.isHiddenMenu) {
// list.push(el);
// }
// })
console
.
log
(
'hiddenNavItemhiddenNavItemhiddenNavItem_______'
,
list
)
return
list
;
// return nav;
}
...
...
@@ -144,6 +146,21 @@ export default {
}
});
},
hiddenNavItem
(
list
,
result
=
[])
{
list
.
forEach
(
el
=>
{
if
(
!
el
.
isHiddenMenu
)
{
result
.
push
(
el
);
if
(
el
.
children
&&
el
.
children
.
length
>
0
)
{
el
.
children
=
this
.
hiddenNavItem
(
el
.
children
)
}
}
}
)
return
result
;
},
handleWindowClick
()
{
console
.
log
(
'handleWindowClick'
,
this
.
fromNav
,
this
.
preActive
);
if
(
!
this
.
fromNav
)
{
...
...
src/components/layout/header/mock.js
View file @
1f9e8c95
...
...
@@ -56,7 +56,6 @@ export const nav = [
{
name
:
"内设机构"
},
],
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"质检中心/协会/杂志社/标委会/其他"
,
...
...
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