diff --git a/packages/@vuepress/core/lib/client/components/Content.js b/packages/@vuepress/core/lib/client/components/Content.js index 12d7096810..3acd9013f2 100644 --- a/packages/@vuepress/core/lib/client/components/Content.js +++ b/packages/@vuepress/core/lib/client/components/Content.js @@ -13,8 +13,7 @@ export default { const pageKey = this.pageKey || this.$parent.$page.key const pageComponent = getPageAsyncComponent(pageKey) if (pageComponent) { - Vue.component(pageKey, pageComponent) - return h(pageKey) + return h(pageComponent) } return h('') }