Commit 2dd654b3 authored by qiankunpingtai's avatar qiankunpingtai
Browse files

如果用户的id没有获取到,跳转到登录页面

parent ebfd4705
......@@ -15,6 +15,16 @@ HROS.app = (function(){
},
get : function(){
var userId = sessionStorage.getItem("userId");
/**
* create by: qiankunpingtai
* create time: 2019/3/20 16:26
* description:
*如果用户的id没有获取到,跳转到登录页面
*/
if(userId==undefined||userId==null){
top.location.href = "http://" + location.host + "/login.html";
return;
}
$.getJSON('../../app/findAppByUserId?userId=' + userId, function (sc) {
HROS.VAR.dock = sc['dock'];
HROS.VAR.desk = sc['desk'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment