vuex 2 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)
}
}