diff --git a/src/AppMenu.vue b/src/AppMenu.vue index 04a5a55aa..200db66e1 100755 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -279,7 +279,15 @@ export default { event.preventDefault(); }, isSubmenuActive(name, routerIsActive) { - return this.activeSubmenus.hasOwnProperty(name) ? this.activeSubmenus[name] : routerIsActive; + if (this.activeSubmenus.hasOwnProperty(name)) { + return this.activeSubmenus[name]; + } + else if (routerIsActive) { + this.activeSubmenus[name] = true; + return true; + } + + return false; } } }