|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="login">
|
|
<div class="login">
|
|
<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">若依后台管理系统</h3>
|
|
|
|
|
|
+ <h3 class="title">Future WEb系统</h3>
|
|
<el-form-item prop="username">
|
|
<el-form-item prop="username">
|
|
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
|
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
|
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
|
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
|
@@ -29,7 +29,7 @@
|
|
<svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
|
|
<svg-icon slot="prefix" icon-class="validCode" class="el-input__icon input-icon" />
|
|
</el-input>
|
|
</el-input>
|
|
<div class="login-code">
|
|
<div class="login-code">
|
|
- <img :src="codeUrl" @click="getCode" class="login-code-img"/>
|
|
|
|
|
|
+ <img :src="codeUrl" @click="getCode" class="login-code-img" />
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">记住密码</el-checkbox>
|
|
<el-checkbox v-model="loginForm.rememberMe" style="margin:0px 0px 25px 0px;">记住密码</el-checkbox>
|
|
@@ -86,7 +86,7 @@ export default {
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
$route: {
|
|
$route: {
|
|
- handler: function(route) {
|
|
|
|
|
|
+ handler: function (route) {
|
|
this.redirect = route.query && route.query.redirect;
|
|
this.redirect = route.query && route.query.redirect;
|
|
},
|
|
},
|
|
immediate: true
|
|
immediate: true
|
|
@@ -127,7 +127,7 @@ export default {
|
|
Cookies.remove('rememberMe');
|
|
Cookies.remove('rememberMe');
|
|
}
|
|
}
|
|
this.$store.dispatch("Login", this.loginForm).then(() => {
|
|
this.$store.dispatch("Login", this.loginForm).then(() => {
|
|
- this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
|
|
|
|
|
|
+ this.$router.push({ path: this.redirect || "/" }).catch(() => { });
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
this.getCode();
|
|
this.getCode();
|
|
@@ -145,8 +145,7 @@ export default {
|
|
justify-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
height: 100%;
|
|
- background-image: url("../assets/images/login-background.jpg");
|
|
|
|
- background-size: cover;
|
|
|
|
|
|
+ background: linear-gradient(-38deg, #3a3e59 0%, #4f5479 100%);
|
|
}
|
|
}
|
|
.title {
|
|
.title {
|
|
margin: 0px auto 30px auto;
|
|
margin: 0px auto 30px auto;
|