fix #9, better error during registration

This commit is contained in:
les
2019-09-05 13:31:14 +02:00
parent 1bc8a83cf8
commit b755f940d7
4 changed files with 10 additions and 8 deletions

View File

@@ -66,10 +66,10 @@ export default {
})
this.$router.replace("/")
} catch (e) {
const error = get(e, 'e.response.data.errors[0].message', String(e))
const error = get(e, 'response.data.errors[0].message', String(e))
Message({
showClose: true,
message: this.$t('register.error') + this.$t(error),
message: this.$t(error),
type: 'error'
})
}