From a5132f42a1bf77f6bd69b371aa4ab70f64747c27 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期四, 11 九月 2025 16:25:11 +0800 Subject: [PATCH] 登录页修改 --- src/views/login.vue | 33 +++++++++++++++++---------------- 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 1922fb5..a7c7c11 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,7 +1,7 @@ <template> <div class="login"> <div class="login-card"> - <div class="title">闄曡タ鏄痉鐜繚鍨嬬叅鏈夐檺鍏徃</div> + <div class="title">閿愭嫨鑳芥簮绉戞妧鏈夐檺鍏徃</div> <el-form ref="loginRef" :model="loginForm" :rules="loginRules" class="login-form" label-position="top"> <el-form-item prop="username" label="璐﹀彿"> <el-input @@ -70,7 +70,7 @@ </template> <script setup> -import { getCodeImg } from "@/api/login" +// import { getCodeImg } from "@/api/login" import Cookies from "js-cookie" import { encrypt, decrypt } from "@/utils/jsencrypt" import useUserStore from '@/store/modules/user' @@ -135,23 +135,23 @@ }).catch(() => { loading.value = false // 閲嶆柊鑾峰彇楠岃瘉鐮� - if (captchaEnabled.value) { - getCode() - } + // if (captchaEnabled.value) { + // getCode() + // } }) } }) } -function getCode() { - getCodeImg().then(res => { - captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled - if (captchaEnabled.value) { - codeUrl.value = "data:image/gif;base64," + res.img - loginForm.value.uuid = res.uuid - } - }) -} +// function getCode() { +// getCodeImg().then(res => { +// captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled +// if (captchaEnabled.value) { +// codeUrl.value = "data:image/gif;base64," + res.img +// loginForm.value.uuid = res.uuid +// } +// }) +// } function getCookie() { const username = Cookies.get("username") @@ -164,7 +164,7 @@ } } -getCode() +// getCode() getCookie() </script> @@ -174,7 +174,7 @@ //justify-content: center; //align-items: center; height: 100%; - background-image: url("../assets/images/Logo2Back.jpg"); + background-image: url("../assets/images/Logo3Back.jpg"); background-size: cover; position: relative; } @@ -183,6 +183,7 @@ font-weight: 700; font-size: 32px; color: #165DFF; + text-align: center; } .login-card { background: #ffffff; -- Gitblit v1.9.3