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
|
|
@ -483,7 +483,6 @@ export default {
|
|||
.then(r => {
|
||||
this[kind] = r
|
||||
})
|
||||
.catch(e => this.$message.error(e))
|
||||
}
|
||||
},
|
||||
setDoneFilter() {
|
||||
|
|
@ -535,9 +534,6 @@ export default {
|
|||
// Filter users from the results who are already assigned
|
||||
this[`found${kind}`] = response.filter(({id}) => !includesById(this[kind], id))
|
||||
})
|
||||
.catch(e => {
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
add(kind, filterName) {
|
||||
this.$nextTick(() => {
|
||||
|
|
|
|||
|
|
@ -68,9 +68,6 @@ export default {
|
|||
.then(b => {
|
||||
this.background = b
|
||||
})
|
||||
.catch(e => {
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => this.backgroundLoading = false)
|
||||
},
|
||||
toggleFavoriteList(list) {
|
||||
|
|
@ -80,7 +77,6 @@ export default {
|
|||
return
|
||||
}
|
||||
this.$store.dispatch('lists/toggleListFavorite', list)
|
||||
.catch(e => this.$message.error(e))
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue