From 87ab563df3af4fb26e84d2c5095a3d58f558b33f Mon Sep 17 00:00:00 2001 From: "BOOL\\25024" Date: Thu, 7 Mar 2024 16:42:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A4=B1=E8=B4=A5=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsowell-ui/src/views/login.vue | 50 ++++++++++++++-------------------- 1 file changed, 20 insertions(+), 30 deletions(-) diff --git a/jsowell-ui/src/views/login.vue b/jsowell-ui/src/views/login.vue index 7fb8995a4..227c517a9 100644 --- a/jsowell-ui/src/views/login.vue +++ b/jsowell-ui/src/views/login.vue @@ -3,49 +3,29 @@

万车充后台管理系统

- + - + - + 记住密码 - + 登 录 登 录 中... @@ -97,7 +77,7 @@ export default { }, watch: { $route: { - handler: function(route) { + handler: function (route) { this.redirect = route.query && route.query.redirect; }, immediate: true @@ -141,10 +121,11 @@ export default { Cookies.remove('rememberMe'); } this.$store.dispatch("Login", this.loginForm).then(() => { - this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); + this.$router.push({ path: this.redirect || "/" }).catch(() => { }); }).catch(() => { this.loading = false; if (this.captchaEnabled) { + this.loginForm.code = '' this.getCode(); } }); @@ -164,6 +145,7 @@ export default { background-image: url("../assets/images/login-background.jpg"); background-size: cover; } + .title { margin: 0px auto 30px auto; text-align: center; @@ -175,32 +157,39 @@ export default { background: #ffffff; width: 400px; padding: 25px 25px 5px 25px; + .el-input { height: 38px; + input { height: 38px; } } + .input-icon { height: 39px; width: 14px; margin-left: 2px; } } + .login-tip { font-size: 13px; text-align: center; color: #bfbfbf; } + .login-code { width: 33%; height: 38px; float: right; + img { cursor: pointer; vertical-align: middle; } } + .el-login-footer { height: 40px; line-height: 40px; @@ -213,6 +202,7 @@ export default { font-size: 12px; letter-spacing: 1px; } + .login-code-img { height: 38px; }