feat: don't rethrow same error and handle errors globally
This commit is contained in:
parent
6f51921588
commit
3b940cb56c
71 changed files with 69 additions and 451 deletions
|
|
@ -227,9 +227,6 @@ export default {
|
|||
this.comments = r
|
||||
this.makeActions()
|
||||
})
|
||||
.catch((e) => {
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
addComment() {
|
||||
if (this.newComment.comment === '') {
|
||||
|
|
@ -253,9 +250,6 @@ export default {
|
|||
this.$message.success({message: this.$t('task.comment.addedSuccess')})
|
||||
this.makeActions()
|
||||
})
|
||||
.catch((e) => {
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => {
|
||||
this.creating = false
|
||||
})
|
||||
|
|
@ -289,9 +283,6 @@ export default {
|
|||
this.saved = null
|
||||
}, 2000)
|
||||
})
|
||||
.catch((e) => {
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => {
|
||||
this.isCommentEdit = false
|
||||
this.saving = null
|
||||
|
|
@ -307,9 +298,6 @@ export default {
|
|||
}
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => {
|
||||
this.showDeleteModal = false
|
||||
})
|
||||
|
|
|
|||
Reference in a new issue