globalUploader.js 468 Bytes
const state = {
  openUploader: {},
  activeLoad: {}
}
const mutations = {
  SET_OPENUPLOADER: (state, data) => {
    state.openUploader = data
  },
  SET_ACTIVELOAD: (state, data) => {
    state.activeLoad = data
  }
}

const actions = {
  setOpenUploader({ commit }, data) {
    commit('SET_OPENUPLOADER', data)
  },
  setActiveLoad({ commit }, data) {
    commit('SET_ACTIVELOAD', data)
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}