diff --git a/src/client/theme-default/components/NavDropdownLinkItem.vue b/src/client/theme-default/components/NavDropdownLinkItem.vue index 9ee5bddb..87723bbb 100644 --- a/src/client/theme-default/components/NavDropdownLinkItem.vue +++ b/src/client/theme-default/components/NavDropdownLinkItem.vue @@ -17,7 +17,9 @@ import OutboundLink from './icons/OutboundLink.vue' const props = defineProps<{ item: DefaultTheme.NavItemWithLink }>() -const propsRefs = toRefs(props); + +const propsRefs = toRefs(props) + const { props: linkProps, isExternal } = useNavLink(propsRefs.item) diff --git a/src/client/theme-default/components/NavLink.vue b/src/client/theme-default/components/NavLink.vue index 7497b650..1e8d59cf 100644 --- a/src/client/theme-default/components/NavLink.vue +++ b/src/client/theme-default/components/NavLink.vue @@ -14,9 +14,11 @@ import OutboundLink from './icons/OutboundLink.vue' const props = defineProps<{ item: DefaultTheme.NavItemWithLink, -}>(); -const propsRefs = toRefs(props); -const { props: linkProps, isExternal } = useNavLink(propsRefs.item); +}>() + +const propsRefs = toRefs(props) + +const { props: linkProps, isExternal } = useNavLink(propsRefs.item)