Merge branch 'prod'

pull/5002/head
tugcekucukoglu 2023-12-25 13:59:19 +03:00
commit dbe2f3d3d1
1 changed files with 3 additions and 1 deletions

View File

@ -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}`)))
);
}
}
};