Commit 08d282e32c407d963a977a2021fdbf45af15d11c
Committed by
GitHub

1 parent
96c0c8ae
updateOpened时判断accordion
updateOpened时判断accordion
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/components/menu/menu.vue
@@ -92,6 +92,9 @@ | @@ -92,6 +92,9 @@ | ||
92 | 92 | ||
93 | if (items.length) { | 93 | if (items.length) { |
94 | items.forEach(item => { | 94 | items.forEach(item => { |
95 | + if (this.accordion) { | ||
96 | + item.opened = false; | ||
97 | + } | ||
95 | if (this.openNames.indexOf(item.name) > -1) item.opened = true; | 98 | if (this.openNames.indexOf(item.name) > -1) item.opened = true; |
96 | }); | 99 | }); |
97 | } | 100 | } |