mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +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)
|
|
}
|