Skip to content

Instantly share code, notes, and snippets.

@anoobbava
Last active December 17, 2019 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoobbava/66d8e97d24f245e496a0c25ed98e6d77 to your computer and use it in GitHub Desktop.
Save anoobbava/66d8e97d24f245e496a0c25ed98e6d77 to your computer and use it in GitHub Desktop.
saveTodoAction ({ commit }, todoData) {
return new Promise((resolve, reject) => {
ApiHelper.todo(todoData)
.then(response => {
commit('saveTodoMutation', response)
resolve(response)
})
.catch(error => {
reject(error)
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment