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
ff015295
Commit
ff015295
authored
May 16, 2019
by
qiankunpingtai
Browse files
Merge branch 'master' of
https://gitee.com/jishenghua/JSH_ERP
parents
f2b1b059
74f0b886
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/login.html
View file @
ff015295
...
@@ -166,11 +166,9 @@
...
@@ -166,11 +166,9 @@
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
===
200
)
{
if
(
res
&&
res
.
code
===
200
)
{
if
(
res
.
data
.
user
)
{
if
(
res
.
data
.
user
)
{
console
.
log
(
"
user
"
);
var
user
=
res
.
data
.
user
;
var
user
=
res
.
data
.
user
;
sessionStorage
.
setItem
(
"
userId
"
,
user
.
id
);
sessionStorage
.
setItem
(
"
userId
"
,
user
.
id
);
console
.
log
(
"
http://
"
+
location
.
host
+
"
/index.html
"
);
top
.
location
.
href
=
"
/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