[fix] close dialog on success registration

This commit is contained in:
les 2019-10-31 23:42:20 +01:00
parent 6fb2430009
commit d13905c55a

View file

@ -64,7 +64,7 @@ export default {
message: this.$t(`register.${user.is_admin ? 'admin_' : ''}complete`), message: this.$t(`register.${user.is_admin ? 'admin_' : ''}complete`),
type: 'success' type: 'success'
}) })
this.$router.replace('/') this.close()
} catch (e) { } catch (e) {
const error = get(e, 'response.data.errors[0].message', String(e)) const error = get(e, 'response.data.errors[0].message', String(e))
Message({ Message({