Commit 5090e746 authored by zhangyanni's avatar zhangyanni

登录之后跳转

parent 4385952e
......@@ -158,6 +158,7 @@
window.sessionStorage.removeItem("userInfo");
}
// publicFunc.setUserInfoCookie(that.Base64.encode(JSON.stringify(data)));
window.sessionStorage.setItem("userInfo",that.Base64.encode(JSON.stringify(data)));
this.hasSetPassword(data);
},
......
......@@ -133,6 +133,7 @@
window.sessionStorage.removeItem("userInfo");
}
// publicFunc.setUserInfoCookie(that.Base64.encode(JSON.stringify(data)));
window.sessionStorage.setItem("userInfo",that.Base64.encode(JSON.stringify(data)));
if (data.locked == 1 && data.empType != 2) this.$router.replace("/completeInfoCmpt");
data.empType==0?this.$router.push({path:"/bigBusiness/list",query:{remind:true}}):data.empType==1?this.$router.push({path:"/seeprojectlist",query:{remind:true}}): data.roleList[0].roleType==1?this.$router.push("/sys.user"): this.$router.push("/seeprojectlist");
this.timeOutReturn();
......
......@@ -137,6 +137,7 @@
window.sessionStorage.removeItem("userInfo");
}
// publicFunc.setUserInfoCookie(that.Base64.encode(JSON.stringify(data)));
window.sessionStorage.setItem("userInfo",that.Base64.encode(JSON.stringify(data)));
this.hasSetPassword(data);
},
......
......@@ -164,6 +164,7 @@
window.sessionStorage.removeItem("userInfo");
}
// publicFunc.setUserInfoCookie(that.Base64.encode(JSON.stringify(data)));
window.sessionStorage.setItem("userInfo",that.Base64.encode(JSON.stringify(data)));
if (data.locked == 1 && data.empType != 2) this.$router.replace("/completeInfoCmpt");
data.empType==0?this.$router.push({path:"/bigBusiness/list",query:{remind:true}}):data.empType==1?this.$router.push({path:"/seeprojectlist",query:{remind:true}}): data.roleList[0].roleType==1?this.$router.push("/sys.user"): this.$router.push("/seeprojectlist");
that.timeOutReturn()
......
......@@ -149,6 +149,7 @@
// else{
// this.$router.push("/mobileSuccess");
// }
window.sessionStorage.setItem("userInfo",that.Base64.encode(JSON.stringify(data)));
this.$router.push("/mobileSuccess");
that.timeOutReturn();
......
......@@ -135,6 +135,7 @@
// else{
// this.$router.push("/mobileSuccess");
// }
window.sessionStorage.setItem("userInfo",that.Base64.encode(JSON.stringify(data)));
this.$router.push("/mobileSuccess");
this.timeOutReturn();
},
......
......@@ -132,6 +132,7 @@
// else{
// this.$router.push("/mobileSuccess");
// }
window.sessionStorage.setItem("userInfo",that.Base64.encode(JSON.stringify(data)));
this.$router.push("/mobileSuccess");
that.timeOutReturn();
},
......
......@@ -170,6 +170,7 @@
// else{
// this.$router.push("/mobileSuccess");
// }
window.sessionStorage.setItem("userInfo",that.Base64.encode(JSON.stringify(data)));
this.$router.push("/mobileSuccess");
that.timeOutReturn()
......
Markdown is supported
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