|
@@ -7,8 +7,9 @@ const route = useRoute()
|
|
const { toc } = useAppConfig()
|
|
const { toc } = useAppConfig()
|
|
|
|
|
|
const { data: page } = await useAsyncData(route.path, () => queryCollection('docs').path(route.path).first())
|
|
const { data: page } = await useAsyncData(route.path, () => queryCollection('docs').path(route.path).first())
|
|
|
|
+
|
|
if (!page.value) {
|
|
if (!page.value) {
|
|
- throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
|
|
|
|
|
|
+ throw createError({ statusCode: 404, statusMessage: 'Page not found' })
|
|
}
|
|
}
|
|
|
|
|
|
const { data: surround } = await useAsyncData(`${route.path}-surround`, () => {
|
|
const { data: surround } = await useAsyncData(`${route.path}-surround`, () => {
|