vueex access state in 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)
}
}