Skip to content

Commit b562972

Browse files
committed
fix($core): NotFound component doesn't work (close: #1130)
BTW, load Layout component synchronously
1 parent 06fb694 commit b562972

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/@vuepress/core/lib/app/components/LayoutDistributor.vue

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
</template>
44

55
<script>
6+
import Vue from 'vue'
7+
import { getLayoutAsyncComponent } from '../util'
8+
9+
Vue.component('Layout', getLayoutAsyncComponent('Layout'))
10+
Vue.component('NotFound', getLayoutAsyncComponent('NotFound'))
11+
612
export default {
713
computed: {
814
layout () {

0 commit comments

Comments
 (0)