Error messages in boxes instead of console.log

This commit is contained in:
Henrique Dias committed 2017-07-08 14:45:56 +01:00
1 parent bb116fe5b0
commit 66093fe117
5 files changed
+6 -7

No files matched your search

+1 -2
View File
@@ -34,9 +34,8 @@ export default {
created () {
api.getUsers().then(users => {
this.users = users
console.log(users)
}).catch(error => {
console.log(error)
this.$store.commit('showError', error)
})
}
}