import storage from '@/utils/storage'
const state = {
  currentAlias: '',
  allAliasArr: []
}

const mutations = {
  setCurrentAlias: (state, data) => {
    state.currentAlias = data
    storage.set('currentAlias', data)
  },
  setAllAliasArr: (state, data) => {
    state.allAliasArr = data
  }
}

export default {
  namespaced: true,
  state,
  mutations
}
