Skip to content

Commit aeffd2d

Browse files
committed
fix: api refrence and surround desc
1 parent c48cebe commit aeffd2d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

app/app.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ provide('navigation', contentNavigation)
2626
<UApp>
2727
<NuxtLoadingIndicator />
2828

29-
<AppHeader v-if="!route.path.startsWith('/api/')"/>
29+
<AppHeader v-if="!route.path.startsWith('/docs/api/')"/>
3030

31-
<template v-if="route.path !== '/' && !route.path.startsWith('/api')">
31+
<template v-if="route.path !== '/' && !route.path.startsWith('/docs/api')">
3232
<UMain>
3333
<UContainer>
3434
<UPage>
@@ -76,10 +76,12 @@ provide('navigation', contentNavigation)
7676

7777
<!-- Document home page -->
7878
<template v-else>
79-
<NuxtPage />
79+
<NuxtLayout>
80+
<NuxtPage />
81+
</NuxtLayout>
8082
</template>
8183

82-
<AppFooter />
84+
<AppFooter v-if="!route.path.startsWith('/docs/api')"/>
8385

8486
<ClientOnly>
8587
<LazyUContentSearch

app/composables/useContentNavigation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ export const useSurroundWithDesc = async (
120120

121121
return base.map((item, i) => ({
122122
...item,
123-
description: (docs[i] as any)?.description,
123+
description: (docs[i])?.desc
124124
}))
125125
}

0 commit comments

Comments
 (0)