fix login error msg
This commit is contained in:
parent
ba1bf9e51c
commit
2658827314
2 changed files with 2 additions and 3 deletions
|
@ -79,7 +79,7 @@
|
|||
"check_email": "Controlla la tua posta (anche lo spam)",
|
||||
"not_registered": "Non sei registrata?",
|
||||
"forgot_password": "Dimenticato la password?",
|
||||
"error": "Errore: ",
|
||||
"error": "Errore durante il login, controlla i dati.",
|
||||
"insert_email": "Inserisci la mail",
|
||||
"ok": "Tutto rego"
|
||||
},
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
import { Message } from 'element-ui'
|
||||
import get from 'lodash/get'
|
||||
|
||||
export default {
|
||||
name: 'Login',
|
||||
|
@ -71,7 +70,7 @@ export default {
|
|||
Message({ message: this.$t('login.ok'), showClose: true, type: 'success' })
|
||||
this.$router.replace('/')
|
||||
} catch (e) {
|
||||
Message({ message: this.$t('login.error') + this.$t(get(e, 'response.data.message', e)), showClose: true, type: 'error' })
|
||||
Message({ message: this.$t('login.error'), showClose: true, type: 'error' })
|
||||
this.loading = false
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue