修改登陆背景

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

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

Loading…
Cancel
Save