mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
parent
9bb76bcf7d
commit
90db0aded8
@ -1,5 +1,5 @@
|
|||||||
export default ({ route, app }) => {
|
export default ({ route, store }) => {
|
||||||
// Take the last value (latest route child)
|
// Take the last value (latest route child)
|
||||||
const theme = route.meta.reduce((theme, meta) => meta.theme || theme, 'light')
|
const theme = route.meta.reduce((theme, meta) => meta.theme || theme, 'light')
|
||||||
app.store.commit('SET_THEME', theme)
|
store.commit('SET_THEME', theme)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user