access mutation from action code example
Example: vue store access state in actions
actions: {
actionName ({ commit, state }, payload) {
console.log(state)
}
}
actions: {
actionName ({ commit, state }, payload) {
console.log(state)
}
}