DESKTOP-CVS3R96\我恁爹
2022-11-11 9ca581cca97e9ba95ff808f6b7a08c24a4758dbf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import Vue from 'vue'
import Vuex from 'vuex'
// import getters from './getters'
// import actions from './actions'
// import mutations from './mutations'
 
Vue.use(Vuex)
 
let state = {
  className: 'black',
  theme:'red',
  userInfo: { // 用户信息
  },
  user: {},
  bankInfo: {
    bankNo: ''
  },
  hide: false,
  select: '/home', // 菜单选择
  token: 'USER62CCF5221CD752269D47681374DD0916',
  elAlertShow: false,
  elAlertText: '',
  elAlertType:  'warning',
  settingForm: { // 产品配置
    futuresDisplay: false,
    indexDisplay: false,
    kcStockDisplay: false,
    stockDisplay: false
  }
}
 
export default new Vuex.Store({
  state,
  actions: {},
  mutations: {
    elAlertShow(state, payload) {
      state.elAlertShow = payload.elAlertShow;
      state.elAlertText = payload.elAlertText;
      if(payload.elAlertType){
        state.elAlertType = payload.elAlertType;
      }
      
    }
  },
  getters: {}
})