Commit 38a22c59a131e083fbbcff653ea91ff80d4204ea

Authored by Aresn
Committed by GitHub
2 parents 4f866de5 08d282e3

Merge pull request #2870 from qutz/2.0

updateOpened时判断accordion
Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/components/menu/menu.vue
... ... @@ -99,6 +99,9 @@
99 99  
100 100 if (items.length) {
101 101 items.forEach(item => {
  102 + if (this.accordion) {
  103 + item.opened = false;
  104 + }
102 105 if (this.openNames.indexOf(item.name) > -1) item.opened = true;
103 106 });
104 107 }
... ...