From 8d10e36cc8b7a6799ef6cef4f0e718be4bb93e9a Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 30 May 2024 16:30:44 +0300 Subject: [PATCH] AppMenu and router link fixes --- doc/configuration/UnstyledDoc.vue | 2 +- layouts/AppMenuItem.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/configuration/UnstyledDoc.vue b/doc/configuration/UnstyledDoc.vue index c795cd06f..b796f7bfb 100644 --- a/doc/configuration/UnstyledDoc.vue +++ b/doc/configuration/UnstyledDoc.vue @@ -2,7 +2,7 @@

Unstyled mode instructs the components not to add any built-in style classes so that they can be styled using custom css or libraries like Tailwind, Bootstrap or PrimeFlex. Visit - Unstyled mode documentation for more information. + Unstyled mode documentation for more information.

diff --git a/layouts/AppMenuItem.vue b/layouts/AppMenuItem.vue index ff00d8361..14857874b 100644 --- a/layouts/AppMenuItem.vue +++ b/layouts/AppMenuItem.vue @@ -15,6 +15,7 @@ {{ menuitem.name }} + @@ -47,7 +48,8 @@ export default { methods: { isActiveRootmenuItem(menuitem) { 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}`))) + menuitem.children && + !menuitem.children.some((item) => item.to === `/${this.$router.currentRoute.value?.name?.replaceAll('-', '/')}` || (item.children && item.children.some((it) => it.to === `/${this.$router.currentRoute.value.name}`))) ); } }