Merge branch 'prod'
commit
dbe2f3d3d1
|
@ -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