|
@@ -78,7 +78,7 @@ export default {
|
|
|
console.log("打印用户信息",userInfo);
|
|
console.log("打印用户信息",userInfo);
|
|
|
this.$store.dispatch("user/CLEAR_LOCAL_STORAGE");//清空本地存储
|
|
this.$store.dispatch("user/CLEAR_LOCAL_STORAGE");//清空本地存储
|
|
|
setToken(userInfo.tokenValue);
|
|
setToken(userInfo.tokenValue);
|
|
|
- sessionStorage.setItem('schoolType', 2);//1:单校 2:联校//
|
|
|
|
|
|
|
+ sessionStorage.setItem('schoolType', 1);//1:单校 2:联校// 暂时写死单校
|
|
|
this.$store.dispatch("user/SET_TOKEN", userInfo.tokenValue);
|
|
this.$store.dispatch("user/SET_TOKEN", userInfo.tokenValue);
|
|
|
this.$store.dispatch("user/SET_SCHOOL_LOGO",userInfo.schoolLogoUrl);//设置学校logo
|
|
this.$store.dispatch("user/SET_SCHOOL_LOGO",userInfo.schoolLogoUrl);//设置学校logo
|
|
|
this.$store.dispatch("user/SET_SCHOOL_WEB_SITE_ID",userInfo.cloudMonitorSiteId || '');//设置学校网站id
|
|
this.$store.dispatch("user/SET_SCHOOL_WEB_SITE_ID",userInfo.cloudMonitorSiteId || '');//设置学校网站id
|