| | |
| | | |
| | | Vue.use(Vuex) |
| | | |
| | | const state = { |
| | | let state = { |
| | | className: 'black', |
| | | theme:'red', |
| | | userInfo: { // 用户信息 |
| | |
| | | hide: false, |
| | | select: '/home', // 菜单选择 |
| | | token: 'USER62CCF5221CD752269D47681374DD0916', |
| | | elAlertShow: false, |
| | | elAlertText: '', |
| | | elAlertType: 'warning', |
| | | settingForm: { // 产品配置 |
| | | futuresDisplay: false, |
| | | indexDisplay: false, |
| | |
| | | export default new Vuex.Store({ |
| | | state, |
| | | actions: {}, |
| | | mutations: {}, |
| | | mutations: { |
| | | elAlertShow(state, payload) { |
| | | state.elAlertShow = payload.elAlertShow; |
| | | state.elAlertText = payload.elAlertText; |
| | | if(payload.elAlertType){ |
| | | state.elAlertType = payload.elAlertType; |
| | | } |
| | | |
| | | } |
| | | }, |
| | | getters: {} |
| | | }) |