diff --git a/packages/@vuepress/core/lib/app/components/LayoutDistributor.vue b/packages/@vuepress/core/lib/app/components/LayoutDistributor.vue index dbe6e20627..a2fa9645ba 100644 --- a/packages/@vuepress/core/lib/app/components/LayoutDistributor.vue +++ b/packages/@vuepress/core/lib/app/components/LayoutDistributor.vue @@ -13,7 +13,10 @@ export default { computed: { layout () { if (this.$page.path) { - return this.$page.frontmatter.layout || 'Layout' + if (getLayoutAsyncComponent(this.$page.frontmatter.layout)) { + return this.$page.frontmatter.layout + } + return 'Layout' } return 'NotFound' }