Commit ca18248c authored by zhengke's avatar zhengke

修改判断

parent be435249
......@@ -934,14 +934,17 @@ export default {
}
//判断是否为登录状态
if(localStorage.userInfo){
sessionStorage.removeItem("OpenB2BCode");
this.sureMsg.EmployeeIdStr='';
// sessionStorage.removeItem("OpenB2BCode");
// this.sureMsg.EmployeeIdStr='';
let userInfo = this.getLocalStorage();
this.sureMsg.CustomerId = userInfo.customerId;
}
//判断是否跳过来的
if(sessionStorage.getItem('OpenB2BCode')){
this.sureMsg.EmployeeIdStr= sessionStorage.getItem('OpenB2BCode');
this.sureMsg.CustomerId = 0;
}else{
this.sureMsg.EmployeeIdStr="";
}
this.sureMsg.hotelId = this.msg.hotelId;
......
......@@ -350,6 +350,10 @@ export default {
let FromPath = sessionStorage.getItem("FromPath") ? JSON.parse(sessionStorage.getItem("FromPath")) : '';
this.$store.commit("changeLogin", 1);
this.$store.commit("updateUser", userInfo);
//登录成功 删除后台传参
sessionStorage.removeItem("OpenB2BCode");
if (FromPath) {
this.$router.push({ path: FromPath.path, query: FromPath.query });
} else if (this.$route.query.id && this.$route.query.path) {
......
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