DESKTOP-CVS3R96\我恁爹
2022-11-11 9ca581cca97e9ba95ff808f6b7a08c24a4758dbf
src/store/index.js
@@ -6,7 +6,7 @@
Vue.use(Vuex)
const state = {
let state = {
  className: 'black',
  theme:'red',
  userInfo: { // 用户信息
@@ -18,6 +18,9 @@
  hide: false,
  select: '/home', // 菜单选择
  token: 'USER62CCF5221CD752269D47681374DD0916',
  elAlertShow: false,
  elAlertText: '',
  elAlertType:  'warning',
  settingForm: { // 产品配置
    futuresDisplay: false,
    indexDisplay: false,
@@ -29,6 +32,15 @@
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: {}
})