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
ed7e7742
Commit
ed7e7742
authored
Feb 28, 2019
by
qiankunpingtai
Browse files
IE6模式一下无法解析json,指定以ie8以上模式打开
parent
68576dda
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/login.html
View file @
ed7e7742
...
...
@@ -3,6 +3,7 @@
<head>
<title>
ERP系统
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=8"
>
<link
rel=
"shortcut icon"
href=
"/images/favicon.ico"
type=
"image/x-icon"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/css/css.css"
/>
<script
type=
"text/javascript"
src=
"/js/jquery-1.8.0.min.js"
></script>
...
...
@@ -122,6 +123,7 @@
}
//跳转到用户管理界面
else
if
(
loginInfoTip
.
indexOf
(
"
user can login
"
)
!=
-
1
||
loginInfoTip
==
"
user already login
"
)
{
console
.
log
(
"
user can login
"
);
$
.
ajax
({
type
:
"
get
"
,
url
:
"
/user/getUserSession
"
,
...
...
@@ -129,8 +131,10 @@
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
===
200
)
{
if
(
res
.
data
.
user
)
{
console
.
log
(
"
user
"
);
var
user
=
res
.
data
.
user
;
sessionStorage
.
setItem
(
"
userId
"
,
user
.
id
);
console
.
log
(
"
http://
"
+
location
.
host
+
"
/index.html
"
);
top
.
location
.
href
=
"
http://
"
+
location
.
host
+
"
/index.html
"
;
}
}
...
...
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