diff --git a/ZR.Vue/src/views/login.vue b/ZR.Vue/src/views/login.vue index f716be7..0003354 100644 --- a/ZR.Vue/src/views/login.vue +++ b/ZR.Vue/src/views/login.vue @@ -134,7 +134,8 @@ export default { this.msgSuccess('登录成功') this.$router.push({ path: this.redirect || '/' }) }) - .catch(() => { + .catch((error) => { + this.msgError(error.msg); this.loading = false this.getCode() this.$refs.codeTxt.focus()