Skip to content

Commit a67f53d

Browse files
committed
fix($core): global components cannot be used as layouts (close: #1321)
1 parent 9d01514 commit a67f53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/@vuepress/core/lib/client/components/GlobalLayout.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
computed: {
88
layout () {
99
if (this.$page.path) {
10-
if (this.$vuepress.isLayoutExists(this.$page.frontmatter.layout)) {
10+
if (this.$vuepress.isLayoutExists(this.$page.frontmatter.layout) || this.$page.frontmatter.layout) {
1111
return this.$page.frontmatter.layout
1212
}
1313
return 'Layout'

0 commit comments

Comments
 (0)