Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d43461 commit 932777dCopy full SHA for 932777d
docs/app/error.vue
@@ -5,7 +5,9 @@ const props = defineProps<{
5
error: NuxtError
6
}>()
7
8
-const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs'))
+const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs'), {
9
+ transform: data => data.find(item => item.path === '/docs')?.children || [],
10
+})
11
const { data: files } = await useAsyncData('files', () => queryCollectionSearchSections('docs', { ignoredTags: ['style'] }))
12
13
const links = useNavLinks()
0 commit comments