Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
2dd654b3
Commit
2dd654b3
authored
Mar 20, 2019
by
qiankunpingtai
Browse files
如果用户的id没有获取到,跳转到登录页面
parent
ebfd4705
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/js/HoorayOS_mini/js/hros.app.js
View file @
2dd654b3
...
...
@@ -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
'
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment