chore: refactor the code of configuration; 🌟

This commit is contained in:
iczer
2020-07-09 17:42:59 +08:00
parent 44a99a2987
commit b5d17cd63b
17 changed files with 192 additions and 162 deletions

View File

@@ -1,11 +1,13 @@
import config from '@/config'
import {ADMIN} from '@/config/default'
export default {
namespaced: true,
state: {
isMobile: false,
animates: require('@/config/default/animates'),
animates: ADMIN.animates,
palettes: ADMIN.palettes,
routesI18n: {},
...config,
routesI18n: {}
},
mutations: {
setDevice (state, isMobile) {
@@ -23,9 +25,6 @@ export default {
setAnimate (state, animate) {
state.animate = animate
},
setThemeColor (state, color) {
state.themeColor = color
},
setWeekMode(state, weekMode) {
state.weekMode = weekMode
},