opt:优化

This commit is contained in:
DESKTOP-5DIJMF9\admin
2025-04-15 13:26:51 +08:00
parent e2b190bd85
commit 010e26adf6
4 changed files with 12 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 559 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@@ -1,5 +1,6 @@
<template>
<div class="login" :style="'background-image:url('+ Background +');'">
<img v-if="logo" :src="logo" class="sidebar-logo2" />
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" label-position="left" label-width="0px" class="login-form">
<h3 class="title">
{{title}}</h3>
@@ -46,12 +47,14 @@ import Config from '@/settings'
import { getCodeImg } from '@/api/login'
import Cookies from 'js-cookie'
import Background from '@/assets/images/background.jpg'
import Logo from '@/assets/images/hailaing2.png'
export default {
name: 'Login',
data() {
return {
title: '甘肃海亮铜箔LMS',
Background: Background,
logo: Logo,
codeUrl: '',
cookiePass: '',
loginForm: {
@@ -169,12 +172,18 @@ export default {
.title {
margin: 0 auto 30px auto;
text-align: center;
color: #707070;
color: #006cb6;
}
.sidebar-logo2 {
width: 370px;
height: 56px;
position: absolute; /* 绝对定位 */
top: 8px; /* 顶部对齐 */
left: 8px; /* 左侧对齐 */
}
.login-form {
border-radius: 6px;
background: #ffffff;
background-color: rgb(252, 247, 247, 0.5); /* 白色背景50%透明度 */
width: 385px;
padding: 25px 25px 5px 25px;
.el-input {