We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5f51de commit 9d01514Copy full SHA for 9d01514
packages/@vuepress/core/lib/client/components/Content.js
@@ -1,4 +1,5 @@
1
-import { isPageExists } from '../util'
+import Vue from 'vue'
2
+import { isPageExists, getPageAsyncComponent } from '../util'
3
4
export default {
5
props: {
@@ -11,6 +12,7 @@ export default {
11
12
render (h) {
13
const pageKey = this.pageKey || this.$parent.$page.key
14
if (isPageExists(pageKey)) {
15
+ Vue.component(pageKey, getPageAsyncComponent(pageKey))
16
return h(pageKey)
17
}
18
return h('')
0 commit comments