action vuex state code example
Example 1: getter in action vuex
this.getters["store/getNameStore"]
Example 2: vue store access state in actions
actions: {
actionName ({ commit, state }, payload) {
console.log(state)
}
}
this.getters["store/getNameStore"]
actions: {
actionName ({ commit, state }, payload) {
console.log(state)
}
}