feat: don't rethrow same error and handle errors globally
This commit is contained in:
@ -100,7 +100,6 @@ export default {
|
||||
this.$store.dispatch('namespaces/loadNamespaces')
|
||||
this.$router.push({name: 'list.index', params: {listId: r.getListId()}})
|
||||
})
|
||||
.catch(e => this.$message.error(e))
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -35,7 +35,6 @@ export default {
|
||||
this.$message.success({message: this.$t('filters.delete.success')})
|
||||
this.$router.push({name: 'namespaces.index'})
|
||||
})
|
||||
.catch(e => this.$message.error(e))
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -105,7 +105,6 @@ export default {
|
||||
this.filter = r
|
||||
this.filters = objectToSnakeCase(this.filter.filters)
|
||||
})
|
||||
.catch(e => this.$message.error(e))
|
||||
},
|
||||
save() {
|
||||
this.filter.filters = this.filters
|
||||
@ -117,7 +116,6 @@ export default {
|
||||
this.filters = objectToSnakeCase(this.filter.filters)
|
||||
this.$router.back()
|
||||
})
|
||||
.catch(e => this.$message.error(e))
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user