mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-18 10:17:16 +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)
|
|
}
|