From ef82c4715e2491c5f51cbf7d0523bf28c131095b Mon Sep 17 00:00:00 2001 From: Rahul Kadyan Date: Fri, 15 Mar 2019 07:14:56 +0530 Subject: [PATCH] fix($core): do not register component in render function (#1449) --- packages/@vuepress/core/lib/client/components/Content.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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('') }