From e6aea5da5e4fabf064f3c268d67b533c8753110c Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 28 八月 2024 18:49:22 +0800 Subject: [PATCH] 1 --- se-ui/src/views/login.vue | 49 +++++++++++++++++-------------------------------- 1 files changed, 17 insertions(+), 32 deletions(-) diff --git a/se-ui/src/views/login.vue b/se-ui/src/views/login.vue index 5941001..4894d33 100644 --- a/se-ui/src/views/login.vue +++ b/se-ui/src/views/login.vue @@ -1,7 +1,7 @@ <template> <div class="login"> <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form"> - <h3 class="title">鑻ヤ緷鍚庡彴绠$悊绯荤粺</h3> + <h3 class="title">鍚庡彴绠$悊绯荤粺</h3> <el-form-item prop="username"> <el-input v-model="loginForm.username" @@ -23,20 +23,7 @@ <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" /> </el-input> </el-form-item> - <el-form-item prop="code" v-if="captchaEnabled"> - <el-input - v-model="loginForm.code" - auto-complete="off" - placeholder="楠岃瘉鐮�" - style="width: 63%" - @keyup.enter.native="handleLogin" - > - <svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" /> - </el-input> - <div class="login-code"> - <img :src="codeUrl" @click="getCode" class="login-code-img"/> - </div> - </el-form-item> + <el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">璁颁綇瀵嗙爜</el-checkbox> <el-form-item style="width:100%;"> <el-button @@ -55,9 +42,7 @@ </el-form-item> </el-form> <!-- 搴曢儴 --> - <div class="el-login-footer"> - <span>Copyright 漏 2018-2024 se.vip All Rights Reserved.</span> - </div> + </div> </template> @@ -85,7 +70,7 @@ password: [ { required: true, trigger: "blur", message: "璇疯緭鍏ユ偍鐨勫瘑鐮�" } ], - code: [{ required: true, trigger: "change", message: "璇疯緭鍏ラ獙璇佺爜" }] + // code: [{ required: true, trigger: "change", message: "璇疯緭鍏ラ獙璇佺爜" }] }, loading: false, // 楠岃瘉鐮佸紑鍏� @@ -104,19 +89,19 @@ } }, created() { - this.getCode(); + // this.getCode(); this.getCookie(); }, methods: { - getCode() { - getCodeImg().then(res => { - this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled; - if (this.captchaEnabled) { - this.codeUrl = "data:image/gif;base64," + res.img; - this.loginForm.uuid = res.uuid; - } - }); - }, + // getCode() { + // getCodeImg().then(res => { + // this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled; + // if (this.captchaEnabled) { + // this.codeUrl = "data:image/gif;base64," + res.img; + // this.loginForm.uuid = res.uuid; + // } + // }); + // }, getCookie() { const username = Cookies.get("username"); const password = Cookies.get("password"); @@ -144,9 +129,9 @@ this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); }).catch(() => { this.loading = false; - if (this.captchaEnabled) { - this.getCode(); - } + // if (this.captchaEnabled) { + // this.getCode(); + // } }); } }); -- Gitblit v1.9.3