You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
908 B
41 lines
908 B
import config from '@/config' |
|
export default { |
|
namespaced: true, |
|
state: { |
|
isMobile: false, |
|
animates: require('@/config/animates'), |
|
...config |
|
}, |
|
mutations: { |
|
setDevice (state, isMobile) { |
|
state.isMobile = isMobile |
|
}, |
|
setTheme (state, theme) { |
|
state.theme = theme |
|
}, |
|
setLayout (state, layout) { |
|
state.layout = layout |
|
}, |
|
setMultiPage (state, multiPage) { |
|
state.multiPage = multiPage |
|
}, |
|
setAnimate (state, animate) { |
|
state.animate = animate |
|
}, |
|
setThemeColor (state, color) { |
|
state.themeColor = color |
|
}, |
|
setWeekMode(state, weekMode) { |
|
state.weekMode = weekMode |
|
}, |
|
setFixedHeader(state, fixedHeader) { |
|
state.fixedHeader = fixedHeader |
|
}, |
|
setFixedSider(state, fixedSider) { |
|
state.fixedSider = fixedSider |
|
}, |
|
setLang(state, lang) { |
|
state.lang = lang |
|
} |
|
} |
|
}
|
|
|