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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
App.vue
src/App.vue
+1
-1
aside-menu.vue
src/components/layout/aside-menu.vue
+8
-6
No files found.
src/App.vue
View file @
ddd10a38
...
@@ -30,7 +30,7 @@ router.beforeEach((to, from, next) => {
...
@@ -30,7 +30,7 @@ router.beforeEach((to, from, next) => {
}
}
next
();
next
();
});
});
window
.
myRouter
=
router
;
export
default
{
export
default
{
name
:
'App'
,
name
:
'App'
,
data
()
{
data
()
{
...
...
src/components/layout/aside-menu.vue
View file @
ddd10a38
...
@@ -24,12 +24,14 @@ export default {
...
@@ -24,12 +24,14 @@ export default {
},
},
computed
:
{
computed
:
{
getMenuList
()
{
getMenuList
()
{
return
this
.
menuList
.
filter
(
el
=>
{
return
this
.
menuList
if
(
el
.
hasRight
&&
el
.
isShow
&&
Array
.
isArray
(
el
.
childList
))
{
.
filter
(
el
=>
{
el
.
childList
=
el
.
childList
.
filter
(
item
=>
item
.
hasRight
&&
item
.
isShow
);
if
(
el
.
hasRight
&&
el
.
isShow
&&
Array
.
isArray
(
el
.
childList
))
{
}
el
.
childList
=
el
.
childList
.
filter
(
item
=>
item
.
hasRight
&&
item
.
isShow
);
return
el
.
hasRight
&&
el
.
isShow
;
}
});
return
el
.
hasRight
&&
el
.
isShow
;
})
.
filter
(
el
=>
Array
.
isArray
(
el
.
childList
)
&&
el
.
childList
.
length
>
0
);
}
}
},
},
methods
:
{
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