envoke action from another action vue store 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
},
}