Official example
function fetchItem (store) { return store.dispatch('FETCH_ITEMS', { ids: [store.state.route.params.id] }) }
Why not just use:
function fetchItem (store) { //发起http请求 axios({url:**}).... }
https://github.com/vuejs/vue-...
This is the author’s answer
https://github.com/vuejs/vue-...
This is the author’s answer