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
07b48935
Commit
07b48935
authored
Jun 11, 2020
by
季圣华
Browse files
解决登录超时之后不退出的bug
parent
c212ae6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/js/modules/sys/userInfo.js
View file @
07b48935
...
...
@@ -11,12 +11,13 @@ $.ajax({
sessionStorage
.
setItem
(
"
userId
"
,
user
.
id
);
if
(
user
.
username
)
{
$
(
"
.main-header .user-menu .hidden-xs,.main-sidebar .info p
"
).
text
(
user
.
username
);
}
else
{
top
.
location
.
href
=
'
/login.html
'
;
}
}
else
{
top
.
location
.
href
=
'
/login.html
'
;
}
}
else
{
top
.
location
.
href
=
'
/login.html
'
;
}
},
error
:
function
()
{
top
.
location
.
href
=
'
/login.html
'
;
}
});
\ No newline at end of file
});
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