docs: types (#2186)

This commit is contained in:
Romain Hamel
2024-09-12 11:10:23 +02:00
committed by GitHub
parent 26e5ac80b6
commit 523493105e
19 changed files with 54 additions and 47 deletions

View File

@@ -86,7 +86,7 @@ defineOgImageComponent('Docs', {
<USeparator />
<UContentSurround :surround="surround" />
<UContentSurround :surround="surround as any" />
</UPageBody>
<template v-if="page?.body?.toc?.links?.length" #right>

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
const route = useRoute()
const name = route.params.slug[0]
const name = route.params.slug?.[0]
</script>
<template>