Skip to content

Commit d1a17a8

Browse files
committed
chore: remove layout component options directly
1 parent 83b02ba commit d1a17a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@vuepress/core/lib/client/components/GlobalLayout.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
</template>
44

55
<script>
6+
import Vue from 'vue'
67
import { setGlobalInfo } from '@app/util'
78
89
export default {
@@ -24,7 +25,7 @@ export default {
2425
layout () {
2526
const layout = this.getLayout()
2627
setGlobalInfo('layout', layout)
27-
return layout
28+
return Vue.component(layout)
2829
}
2930
}
3031
}

0 commit comments

Comments
 (0)