fix(theme): fix custom NotFound component rendering (#1163)

Signed-off-by: Roman Ondráček <ondracek.roman@centrum.cz>
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
pull/1165/head
Roman Ondráček 2 years ago committed by GitHub
parent 8f80bd0122
commit 4a6eda4870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,7 +16,7 @@ import { dataSymbol, initData } from './data'
import { Content } from './components/Content'
import { ClientOnly } from './components/ClientOnly'
const NotFound = Theme.NotFound || (() => '404 Not Found')
export const NotFound = Theme.NotFound || (() => '404 Not Found')
const VitePressApp = {
name: 'VitePressApp',

@ -2,7 +2,7 @@
import { useRoute, useData } from 'vitepress'
import { useCopyCode } from '../composables/copy-code'
import { useSidebar } from '../composables/sidebar'
import NotFound from '../NotFound.vue'
import { NotFound } from '../../app'
import VPPage from './VPPage.vue'
import VPHome from './VPHome.vue'
import VPDoc from './VPDoc.vue'

Loading…
Cancel
Save