fix redirect after login

This commit is contained in:
les 2020-06-01 18:04:12 +02:00
parent 292b1952c3
commit 6fdda999f6

View file

@ -68,7 +68,6 @@ export default {
await this.$auth.loginWith('local', { data })
this.loading = false
Message({ message: this.$t('login.ok'), showClose: true, type: 'success' })
this.$router.replace('/')
} catch (e) {
Message({ message: this.$t('login.error'), showClose: true, type: 'error' })
this.loading = false