diff --git a/examples/routers/menu.vue b/examples/routers/menu.vue
index 8190a9e..d1d62ce 100644
--- a/examples/routers/menu.vue
+++ b/examples/routers/menu.vue
@@ -1,49 +1,39 @@
-
-
-
-
-
-
-
切换主题
-
-
-
-
+
diff --git a/src/components/menu/menu.vue b/src/components/menu/menu.vue
index bf6617f..a3cf40a 100644
--- a/src/components/menu/menu.vue
+++ b/src/components/menu/menu.vue
@@ -81,6 +81,10 @@
this.openNames.splice(index, 1);
} else {
this.openNames.push(name);
+ if (this.accordion) {
+ this.openNames.splice(0, this.openNames.length);
+ this.openNames.push(name);
+ }
}
},
updateOpened () {
--
libgit2 0.21.4