mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
chore: remove layout component options directly
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Vue from 'vue'
|
||||
import { setGlobalInfo } from '@app/util'
|
||||
|
||||
export default {
|
||||
@@ -24,7 +25,7 @@ export default {
|
||||
layout () {
|
||||
const layout = this.getLayout()
|
||||
setGlobalInfo('layout', layout)
|
||||
return layout
|
||||
return Vue.component(layout)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user