修改登陆背景

master
夜笙歌 2 days ago
parent 577322e4c1
commit 0fb9042920

@ -1,5 +1,5 @@
<template> <template>
<div class="login"> <div class="login" :style="`background-image: url(${!isStationId?loginBg1:loginBg2});`">
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form"> <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
<h3 class="title" v-if="!isStationId">MES</h3> <h3 class="title" v-if="!isStationId">MES</h3>
<h3 class="title" v-else>MES</h3> <h3 class="title" v-else>MES</h3>
@ -76,11 +76,15 @@
import { getCodeImg, getProcesses } from '@/api/login' import { getCodeImg, getProcesses } from '@/api/login'
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
import { encrypt, decrypt } from '@/utils/jsencrypt' import { encrypt, decrypt } from '@/utils/jsencrypt'
import loginBg1 from '@/assets/images/login-background.jpg'
import loginBg2 from '@/assets/images/loginBg.jpg'
export default { export default {
name: 'Login', name: 'Login',
data() { data() {
return { return {
loginBg1,
loginBg2,
codeUrl: '', codeUrl: '',
loginForm: { loginForm: {
username: 'xin', username: 'xin',
@ -268,7 +272,6 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100%; height: 100%;
background-image: url("../assets/images/loginBg.jpg");
background-size: cover; background-size: cover;
} }

Loading…
Cancel
Save