Skip to content

Commit ee64dbe

Browse files
committed
ContentDoc fallback test
1 parent 2e88b2a commit ee64dbe

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

apps/web/app/components/MarkDownText.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ const { docPath } = useLocale(props.path)
1212
</script>
1313

1414
<template>
15-
<ContentDoc v-slot="{ doc }" :path="docPath" :head="false">
16-
<ContentRenderer :value="doc" />
15+
<ContentDoc :path="docPath" :head="false">
16+
<template #default="{ doc }">
17+
<ContentRenderer :value="doc" />
18+
</template>
19+
<template #not-found>
20+
<h2>Document not found.</h2>
21+
</template>
1722
</ContentDoc>
1823
</template>

0 commit comments

Comments
 (0)