File tree 1 file changed +14
-8
lines changed
packages/@vuepress/core/lib/client/components
1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <component :is =" layout" />
2
+ <div v-if =" false" >
3
+ <component :is =" layout" />
4
+ </div >
3
5
</template >
4
6
5
7
<script >
6
- import Vue from ' vue'
7
- import { setGlobalInfo } from ' @app/util'
8
+ // import Vue from 'vue'
9
+ // import { setGlobalInfo } from '@app/util'
8
10
9
11
export default {
10
12
methods: {
11
13
getLayout () {
12
14
if (this .$page .path ) {
13
15
const layout = this .$page .frontmatter .layout
14
- if (layout && (this .$vuepress .getLayoutAsyncComponent (layout)
15
- || this .$vuepress .getVueComponent (layout))) {
16
+ if (
17
+ layout
18
+ && (this .$vuepress .getLayoutAsyncComponent (layout)
19
+ || this .$vuepress .getVueComponent (layout))
20
+ ) {
16
21
return layout
17
22
}
18
23
return ' Layout'
@@ -23,9 +28,10 @@ export default {
23
28
24
29
computed: {
25
30
layout () {
26
- const layout = this .getLayout ()
27
- setGlobalInfo (' layout' , layout)
28
- return Vue .component (layout)
31
+ return false
32
+ // const layout = this.getLayout()
33
+ // setGlobalInfo('layout', layout)
34
+ // return Vue.component(layout)
29
35
}
30
36
}
31
37
}
You can’t perform that action at this time.
0 commit comments