|
@@ -47,7 +47,8 @@
|
|
<script>
|
|
<script>
|
|
import StarBackground from '@/components/star'
|
|
import StarBackground from '@/components/star'
|
|
import {
|
|
import {
|
|
- getCodeImg
|
|
|
|
|
|
+ getCodeImg,
|
|
|
|
+ fontConfig
|
|
} from '@/api/login'
|
|
} from '@/api/login'
|
|
import Cookies from 'js-cookie'
|
|
import Cookies from 'js-cookie'
|
|
import {
|
|
import {
|
|
@@ -66,7 +67,7 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
backgroudImg:require('../../assets/images/login/login-ty.jpg'), //背景图片
|
|
backgroudImg:require('../../assets/images/login/login-ty.jpg'), //背景图片
|
|
- systemTitle:{
|
|
|
|
|
|
+ systemTitle:{
|
|
title:'通榆县乡村振兴综合监管平台', //标题
|
|
title:'通榆县乡村振兴综合监管平台', //标题
|
|
subTitle:'数字农业' ,//副标题
|
|
subTitle:'数字农业' ,//副标题
|
|
},
|
|
},
|
|
@@ -112,10 +113,18 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.getCode()
|
|
|
|
- this.getCookie()
|
|
|
|
|
|
+ this.getCode();
|
|
|
|
+ this.getCookie();
|
|
|
|
+ this.fontConfig();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ fontConfig(){
|
|
|
|
+ fontConfig().then(res => {
|
|
|
|
+ this.systemTitle.title = res.data.fontTitle;
|
|
|
|
+ this.systemTitle.subTitle = res.data.subTitle;
|
|
|
|
+ this.backgroudImg = res.data.picUrl;
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getCode() {
|
|
getCode() {
|
|
getCodeImg().then(res => {
|
|
getCodeImg().then(res => {
|
|
this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff
|
|
this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff
|