0👍
In vuex all actions take in parameter ‘context’ and call commit from it.
Please check documentation at https://vuex.vuejs.org/guide/actions.html#dispatching-actions
- [Vuejs]-Error: in Vue consuming Rails Api, data received but Vue can't read
- [Vuejs]-Vuejs how to use method in include component
Source:stackexchange.com