dispatch actions in vue router 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)
}
}