|
|
|
export default {
|
|
|
|
namespaced: true,
|
|
|
|
state: {
|
|
|
|
isMobile: false,
|
|
|
|
theme: 'dark',
|
|
|
|
layout: 'side',
|
|
|
|
systemName: 'Vue Antd Admin',
|
|
|
|
copyright: '2018 ICZER 工作室出品',
|
|
|
|
footerLinks: [
|
|
|
|
{link: 'https://pro.ant.design', name: 'Pro首页'},
|
|
|
|
{link: 'https://github.com/iczer/vue-antd-admin', icon: 'github'},
|
|
|
|
{link: 'https://ant.design', name: 'Ant Design'}
|
|
|
|
],
|
|
|
|
multiPage: true
|
|
|
|
},
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|