Skip to content

Commit 70cf6c4

Browse files
giraud florentgiraud florent
giraud florent
authored and
giraud florent
committed
fix(layout): try to locate the error exactly #1807
1 parent 3f9cd37 commit 70cf6c4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

+5-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</template>
66

77
<script>
8-
// import Vue from 'vue'
9-
// import { setGlobalInfo } from '@app/util'
8+
import Vue from 'vue'
9+
import { setGlobalInfo } from '@app/util'
1010
1111
export default {
1212
methods: {
@@ -28,10 +28,9 @@ export default {
2828
2929
computed: {
3030
layout () {
31-
return false
32-
// const layout = this.getLayout()
33-
// setGlobalInfo('layout', layout)
34-
// return Vue.component(layout)
31+
const layout = this.getLayout()
32+
setGlobalInfo('layout', layout)
33+
return Vue.component(layout)
3534
}
3635
}
3736
}

Diff for: packages/@vuepress/core/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"homepage": "https://github.com/vuejs/vuepress#readme",
3131
"dependencies": {
32+
"core-js": "^3.2.1",
3233
"@babel/core": "^7.0.0",
3334
"@vue/babel-preset-app": "^3.1.1",
3435
"@vuepress/markdown": "^1.0.3",

0 commit comments

Comments
 (0)