Skip to content

Commit

Permalink
fix(mobile): show dialog if one nav has children
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Mar 8, 2023
1 parent 078b945 commit 5bfca2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/app/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { config } = useDocus()
const { navigation } = useContent()
const { hasDocSearch } = useDocSearch()
const hasDialog = computed(() => navigation.value?.length > 1)
const hasDialog = computed(() => navigation.value?.length > 1 || navigation.value?.[0]?.children?.length)
defineProps({
...variants
Expand Down

0 comments on commit 5bfca2b

Please sign in to comment.