Skip to content

Commit

Permalink
fix($core): do not register component in render function (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
znck authored and ulivz committed Mar 15, 2019
1 parent c174f0d commit ef82c47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/@vuepress/core/lib/client/components/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('')
}
Expand Down

0 comments on commit ef82c47

Please sign in to comment.