修改登录失败不会提示问题

This commit is contained in:
不做码农 2022-04-18 10:00:17 +08:00
parent e2fd3356af
commit 3ca37645ae

View File

@ -134,7 +134,8 @@ export default {
this.msgSuccess('登录成功') this.msgSuccess('登录成功')
this.$router.push({ path: this.redirect || '/' }) this.$router.push({ path: this.redirect || '/' })
}) })
.catch(() => { .catch((error) => {
this.msgError(error.msg);
this.loading = false this.loading = false
this.getCode() this.getCode()
this.$refs.codeTxt.focus() this.$refs.codeTxt.focus()