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
|
|
@ -113,16 +113,16 @@ export default {
|
|||
)
|
||||
})
|
||||
|
||||
Promise.all(newTasks)
|
||||
return Promise.all(newTasks)
|
||||
.then(() => {
|
||||
this.newTaskTitle = ''
|
||||
})
|
||||
.catch(e => {
|
||||
if (e === 'NO_LIST') {
|
||||
if (e.message === 'NO_LIST') {
|
||||
this.errorMessage = this.$t('list.create.addListRequired')
|
||||
return
|
||||
}
|
||||
this.$message.error(e)
|
||||
throw e
|
||||
})
|
||||
},
|
||||
handleEnter(e) {
|
||||
|
|
|
|||
Reference in a new issue