Merge branch 'prod' of https://github.com/primefaces/primevue into prod
commit
6c415b3b82
|
@ -46,7 +46,9 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
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}`)))
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue