Nuxt/examples/routes-meta/store/index.js

10 lines
137 B
JavaScript
Raw Normal View History

2018-08-20 12:59:08 +00:00
export const state = () => ({
theme: 'light'
})
export const mutations = {
SET_THEME (state, theme) {
2018-08-20 12:59:08 +00:00
state.theme = theme
}
}