Skip to content

Commit ef82c47

Browse files
znckulivz
authored andcommitted
fix($core): do not register component in render function (#1449)
1 parent c174f0d commit ef82c47

File tree

1 file changed

+1
-2
lines changed
  • packages/@vuepress/core/lib/client/components

1 file changed

+1
-2
lines changed

packages/@vuepress/core/lib/client/components/Content.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ export default {
1313
const pageKey = this.pageKey || this.$parent.$page.key
1414
const pageComponent = getPageAsyncComponent(pageKey)
1515
if (pageComponent) {
16-
Vue.component(pageKey, pageComponent)
17-
return h(pageKey)
16+
return h(pageComponent)
1817
}
1918
return h('')
2019
}

0 commit comments

Comments
 (0)