mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-05 13:43:59 +00:00
90db0aded8
More clear option
6 lines
203 B
JavaScript
6 lines
203 B
JavaScript
export default ({ route, store }) => {
|
|
// Take the last value (latest route child)
|
|
const theme = route.meta.reduce((theme, meta) => meta.theme || theme, 'light')
|
|
store.commit('SET_THEME', theme)
|
|
}
|