新增: 全局色弱模式;

This commit is contained in:
iczer
2020-06-20 11:55:59 +08:00
parent 5bbe94728e
commit 3d568c6caa
10 changed files with 80 additions and 38 deletions

View File

@@ -1,20 +1,10 @@
import {footerLinks, animates, themeColor} from '@/config'
import config from '@/config'
export default {
namespaced: true,
state: {
isMobile: false,
theme: 'dark',
themeColor,
layout: 'side',
systemName: 'Vue Antd Admin',
copyright: '2018 ICZER 工作室出品',
footerLinks: footerLinks,
multiPage: true,
animates: animates,
animate: {
name: 'bounce',
direction: 'left'
}
animates: require('@/config/animates'),
...config
},
mutations: {
setDevice (state, isMobile) {
@@ -34,6 +24,9 @@ export default {
},
setThemeColor (state, color) {
state.themeColor = color
},
setWeekMode(state, weekMode) {
state.weekMode = weekMode
}
}
}