const common = {
    state: {
        _token: '',
        idType: ''
    },
    mutations: {
        CHANGE_TOKEN: (state, data) => {
            state._token = data
        },
        CHANGE_IDTYPE: (state, data) => {
            state.idType = data
        }
    },
    actions: {
        changeToken({ commit }, tokenData) {
            commit('CHANGE_TOKEN', tokenData)
        },
        changeIdType({ commit }, idTypeData) {
            commit('CHANGE_IDTYPE', idTypeData)
        }
    }
}

export default common