vue store access state in actions 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)
}
}