mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 10:50:40 +01:00
docs: add fatal on createError
This commit is contained in:
@@ -37,7 +37,7 @@ definePageMeta({
|
|||||||
|
|
||||||
const { data: page } = await useAsyncData(route.path, () => queryContent(route.path).findOne())
|
const { data: page } = await useAsyncData(route.path, () => queryContent(route.path).findOne())
|
||||||
if (!page.value) {
|
if (!page.value) {
|
||||||
throw createError({ statusCode: 404, statusMessage: 'Page not found' })
|
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
const { data: surround } = await useAsyncData(`${route.path}-surround`, () => {
|
const { data: surround } = await useAsyncData(`${route.path}-surround`, () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user