|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
}
|
|
|
if(getToken() && schoolType){
|
|
|
const currentPath = sessionStorage.getItem('student_currentPath');//获取当前进入的路由
|
|
|
- const directUrl = currentPath?currentPath:'/studentAnalysisReport/list';
|
|
|
+ const directUrl = currentPath?currentPath:'/jointStudentAnalysisReport/list';
|
|
|
this.$router.push({ path: directUrl })
|
|
|
return
|
|
|
}
|
|
|
@@ -78,7 +78,7 @@ export default {
|
|
|
console.log('打印用户信息', userInfo)
|
|
|
this.$store.dispatch('user/CLEAR_LOCAL_STORAGE') //清空本地存储
|
|
|
setToken(userInfo.tokenValue)
|
|
|
- sessionStorage.setItem('schoolType', schoolType || 1) //1:单校 2:联校// 暂时写死单校 线上还是单校的
|
|
|
+ sessionStorage.setItem('schoolType', schoolType || 2) //1:单校 2:联校// 暂时写死单校 线上还是单校的
|
|
|
this.$store.dispatch('user/SET_TOKEN', userInfo.tokenValue)
|
|
|
this.$store.dispatch('user/SET_SCHOOL_LOGO', userInfo.schoolLogoUrl) //设置学校logo
|
|
|
this.$store.dispatch('user/SET_SCHOOL_WEB_SITE_ID', userInfo.cloudMonitorSiteId || '') //设置学校网站id
|
|
|
@@ -89,7 +89,7 @@ export default {
|
|
|
// 移除事件监听器,避免重复处理
|
|
|
window.removeEventListener('message', messageHandler)
|
|
|
if (userInfos.phone) {
|
|
|
- const directUrl = '/studentAnalysisReport/list'
|
|
|
+ const directUrl = '/jointStudentAnalysisReport/list'
|
|
|
|
|
|
this.$router.push({ path: directUrl })
|
|
|
} else {
|