We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4be37f0 commit c4223fbCopy full SHA for c4223fb
docs/app/app.vue
@@ -6,21 +6,7 @@ const route = useRoute()
6
const appConfig = useAppConfig()
7
const colorMode = useColorMode()
8
9
-function mapPath(data) {
10
- return data.map((item) => {
11
- if (item.children) {
12
- item.children = mapPath(item.children)
13
- }
14
- return {
15
- ...item,
16
- _path: item.path,
17
18
- })
19
-}
20
-const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs'), {
21
- default: () => [],
22
- transform: mapPath,
23
-})
+const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('docs'))
24
const { data: files } = await useAsyncData('search', () => queryCollectionSearchSections('docs'))
25
26
const searchTerm = ref('')
0 commit comments