Skip to content

Commit 8672799

Browse files
authored
fix: fix default nav
1 parent 11d146b commit 8672799

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/RecursiveComponent.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,11 @@ watch(
105105
const isVisible = computed(() => {
106106
if (
107107
components &&
108-
(!processedProps?.value?.showForNav ||
109-
currentNav.value?.startsWith(processedProps.value.showForNav))
108+
(
109+
!processedProps?.value?.showForNav ||
110+
(currentNav.value === '/' && processedProps.value?.showForNav === '/') ||
111+
(currentNav.value !== '/' && currentNav.value?.startsWith(processedProps.value.showForNav))
112+
)
110113
) {
111114
return true
112115
}

0 commit comments

Comments
 (0)