Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
office
haoban-3
Commits
ddd10a38
Commit
ddd10a38
authored
May 26, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 修复layoutbug
parent
1180703f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
App.vue
src/App.vue
+1
-1
aside-menu.vue
src/components/layout/aside-menu.vue
+4
-2
No files found.
src/App.vue
View file @
ddd10a38
...
...
@@ -30,7 +30,7 @@ router.beforeEach((to, from, next) => {
}
next
();
});
window
.
myRouter
=
router
;
export
default
{
name
:
'App'
,
data
()
{
...
...
src/components/layout/aside-menu.vue
View file @
ddd10a38
...
...
@@ -24,12 +24,14 @@ export default {
},
computed
:
{
getMenuList
()
{
return
this
.
menuList
.
filter
(
el
=>
{
return
this
.
menuList
.
filter
(
el
=>
{
if
(
el
.
hasRight
&&
el
.
isShow
&&
Array
.
isArray
(
el
.
childList
))
{
el
.
childList
=
el
.
childList
.
filter
(
item
=>
item
.
hasRight
&&
item
.
isShow
);
}
return
el
.
hasRight
&&
el
.
isShow
;
});
})
.
filter
(
el
=>
Array
.
isArray
(
el
.
childList
)
&&
el
.
childList
.
length
>
0
);
}
},
methods
:
{
...
...
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