commit on another action store vue code example
Example: vuex call action from another action
actions:{
get1: ({ commit, dispatch }) => {
dispatch('get2');
},
get2: ({commit}) => {
//things
},
}
actions:{
get1: ({ commit, dispatch }) => {
dispatch('get2');
},
get2: ({commit}) => {
//things
},
}