Skip to content

Commit b073f01

Browse files
committed
fix: reactive navigation in production
1 parent 855ddf8 commit b073f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layer/app/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if (isEnabled.value) {
4242
})
4343
}
4444
45-
const { data: navigation } = await useAsyncData(`navigation_${collectionName.value}`, () => queryCollectionNavigation(collectionName.value as keyof PageCollections), {
45+
const { data: navigation } = await useAsyncData(() => `navigation_${collectionName.value}`, () => queryCollectionNavigation(collectionName.value as keyof PageCollections), {
4646
transform: (data) => {
4747
const rootResult = data.find(item => item.path === '/docs')?.children || data || []
4848

0 commit comments

Comments
 (0)