create user correct error dialog
This commit is contained in:
parent
0ec5eb206d
commit
4176fb274f
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ export default {
|
|||
this.$root.$message('admin.user_create_ok', { color: 'success' })
|
||||
this.users_.push(user)
|
||||
} catch (e) {
|
||||
this.$root.$message(e, { color: 'error' })
|
||||
const err = get(e, 'response.data.errors[0].message', e)
|
||||
this.$root.$message(this.$t(err), { color: 'error' })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue