Resolve layout option dynamically
einsqing opened this issue · 3 comments
einsqing commented
How to load the layout dynamically?
ktsn commented
If you follow the example code in the README, they are already dynamic.
einsqing commented
The code is as follows,layout is dynamic
<!-- pages/index.vue -->
<template>
<p>index.vue</p>
</template>
<script>
import store from './store'
export default {
layout: store.state.layout
}
</script>
ktsn commented
Ah, I see. I thought you were talking about the async components.