pull/5002/head
Cagatay Civici 2023-12-26 11:14:03 +03:00
commit 6c415b3b82
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ export default {
}, },
methods: { methods: {
isActiveRootmenuItem(menuitem) { isActiveRootmenuItem(menuitem) {
return menuitem.children && !menuitem.children.some((item) => item.to === `/${this.$router.currentRoute.value.name}` || (item.children && item.children.some((it) => it.to === `/${this.$router.currentRoute.value.name}`))); return (
menuitem.children && !menuitem.children.some((item) => item.to === `/${this.$router.currentRoute.value?.name?.replace('-', '/')}` || (item.children && item.children.some((it) => it.to === `/${this.$router.currentRoute.value.name}`)))
);
} }
} }
}; };