Commit ff015295 authored by qiankunpingtai's avatar qiankunpingtai
Browse files

Merge branch 'master' of https://gitee.com/jishenghua/JSH_ERP

parents f2b1b059 74f0b886
...@@ -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";
} }
} }
}, },
......
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