|
|
|
@ -158,7 +158,7 @@ function getCaption(obj){ |
|
|
|
|
return obj; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function toSubSystem(className = '',id = '',classId = ''){ |
|
|
|
|
function toSubSystem(className = '',id = '',classId = '',pattern = ''){ |
|
|
|
|
sessionStorage.setItem("token",store.state.token);//token
|
|
|
|
|
sessionStorage.setItem("userName",store.state.userName);//用户名
|
|
|
|
|
sessionStorage.setItem("class",className);//班级名
|
|
|
|
@ -185,9 +185,12 @@ function toSubSystem(className = '',id = '',classId = ''){ |
|
|
|
|
let projectId = res.Info.projectId |
|
|
|
|
let pattern = res.Info.pattern |
|
|
|
|
sessionStorage.setItem("id",projectId) |
|
|
|
|
})
|
|
|
|
|
} |
|
|
|
|
location.href = config.subSystem |
|
|
|
|
location.href = pattern === 0 ? config.subSystem1 : config.subSystem2 |
|
|
|
|
})
|
|
|
|
|
}else{ |
|
|
|
|
location.href = config.subSystem1 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function encodeString(str) { |
|
|
|
|