fix login error msg

This commit is contained in:
les
2020-01-29 18:51:33 +01:00
parent ba1bf9e51c
commit 2658827314
2 changed files with 2 additions and 3 deletions

View File

@@ -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
}