From e0c4ede7fdcacf281bd6b3303d625d87bd4e728c Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期五, 20 十月 2023 18:08:54 +0800 Subject: [PATCH] hzymxg --- src/views/login.vue | 32 +++++++++++++++++++++++--------- 1 files changed, 23 insertions(+), 9 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 511cc79..8ada90f 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,6 +1,10 @@ <template> <div class="login"> - <h1>鏅鸿兘鍋ュ悍浣撴绠$悊绯荤粺</h1> + <!-- <div style="padding-top: 130px;"> --> + <h2>鍏村钩鍏村寲绀惧尯鏈嶅姟绔�</h2> + <h1>鏅鸿兘鍋ュ悍浣撴绠$悊绯荤粺</h1> + <!-- </div> --> + <el-form :inline="true" ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form"> <div class="img"> @@ -61,7 +65,7 @@ </template> <script> -import { getCodeImg ,getconfigKey} from "@/api/login"; +import { getCodeImg, getconfigKey } from "@/api/login"; import Cookies from "js-cookie"; import { encrypt, decrypt } from '@/utils/jsencrypt' @@ -97,7 +101,7 @@ openeye: require('../assets/images/by.png'), flag: false, loading: false, - configKey:"captcha_switch", + configKey: "captcha_switch", // // 楠岃瘉鐮佸紑鍏� captchaEnabled: true, // 娉ㄥ唽寮�鍏� @@ -134,21 +138,21 @@ this.getCookie(); }, methods: { - getstate(){ + getstate() { getconfigKey().then(res => { - if(res.msg == "Y"){ + if (res.msg == "Y") { this.captchaEnabled = true this.getCode(); - }else if(res.msg == "N"){ + } else if (res.msg == "N") { this.captchaEnabled = false } }) }, - + hide() { - this.loginForm.username = "10001"; - this.loginForm.password = "admin123"; + // this.loginForm.username = "10001"; + // this.loginForm.password = "admin123"; }, changetype() { this.pwdtype = this.pwdtype === 'password' ? 'text' : 'password' @@ -218,6 +222,16 @@ }); } else { + const securitMessage = JSON.parse(localStorage.getItem("securitMessage")); + if (securitMessage) { + if (securitMessage != null) { + this.$message({ + message: securitMessage, + type: 'success' + }); + localStorage.removeItem("securitMessage"); + } + } this.$router.push({ path: this.redirect || "/" }).catch(() => { }); } -- Gitblit v1.8.0