diff --git a/packages/@vuepress/core/lib/client/components/Content.js b/packages/@vuepress/core/lib/client/components/Content.js index 4e514de508..ce03278968 100644 --- a/packages/@vuepress/core/lib/client/components/Content.js +++ b/packages/@vuepress/core/lib/client/components/Content.js @@ -21,7 +21,7 @@ export default { Vue.component(pageKey, getPageAsyncComponent(pageKey)) } - if (pageKey) { + if (Vue.component(pageKey)) { return h(pageKey) } return h('')