|
@@ -17,7 +17,7 @@
|
|
|
import Cookies from 'js-cookie'
|
|
|
import { setToken } from '@/utils/auth'
|
|
|
import { getLogoInfo, getUrlConfig } from '@/api/system/publicConfig'
|
|
|
- import { ssoGetLoginUser, getInfo } from '@/api/login'
|
|
|
+ import { ssoGetLoginUser,initPage,getInfo } from '@/api/login'
|
|
|
|
|
|
export default {
|
|
|
name: 'Login',
|
|
@@ -90,6 +90,7 @@
|
|
|
localStorage.setItem('identityType',response.screen_type);
|
|
|
//等待配置与字段获取到后跳转
|
|
|
Promise.all([
|
|
|
+ this.initPage(),
|
|
|
this.getLogoInfo(),
|
|
|
this.getUrlConfig()
|
|
|
]).then((result)=>{
|
|
@@ -104,6 +105,16 @@
|
|
|
// window.open('https://icas.jnu.edu.cn/cas/login?service=http://localhost:8081/sso/getLoginUser','_self')
|
|
|
})
|
|
|
},
|
|
|
+ //获取首页配置
|
|
|
+ initPage(){
|
|
|
+ initPage().then(response => {
|
|
|
+ if(response.data){
|
|
|
+ localStorage.setItem('initPage',true);
|
|
|
+ }else{
|
|
|
+ localStorage.setItem('initPage',false);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
getLogoInfo(){
|
|
|
getLogoInfo().then(response => {
|
|
|
console.log('公共配置', response.data)
|