Commit 92d89bfb authored by anxixi's avatar anxixi

人脉圈

parent 930a59ab
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
urltext:'', urltext:'',
urlIntegral:this.publicFun.getCurrentHrefEnv() + "/index", urlIntegral:this.publicFun.getCurrentHrefEnv() + "/index",
isTrans:this.publicFun.getCookie("language")=="zh-CN"?true:false, isTrans:this.publicFun.getCookie("language")=="zh-CN"?true:false,
userInfo : this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : {}, userInfo : this.publicFun.getUserInfoCookieType() ? JSON.parse(this.Base64.decode(this.publicFun.getUserInfoCookieType())) : null,
} }
}, },
components:{ components:{
...@@ -540,43 +540,45 @@ ...@@ -540,43 +540,45 @@
if(!this.userInfo){ if(!this.userInfo){
this.$router.push({path:"/circleList"}); this.$router.push({path:"/circleList"});
return return
}
if(this.isTrans){
this.isrouterType(this.$route.path);
}else{ }else{
this.isrouterType('/peoplehome/tabs/activity'); if(this.isTrans){
} this.isrouterType(this.$route.path);
this.getPersonalCenter(); }else{
this.getEmpDataLabelList(); this.isrouterType('/peoplehome/tabs/activity');
this.getInitInfo(); }
if(this.$route.query.id){ this.getPersonalCenter();
this.selectBaseEmpRelation(); this.getEmpDataLabelList();
this.getInitInfo();
if(this.$route.query.id){
this.selectBaseEmpRelation();
}
} }
}, },
watch: { watch: {
$route(to, from) { $route(to, from) {
//将mounted中的数据在这里重新加载一下即可 //将mounted中的数据在这里重新加载一下即可
if(!this.userInfo){ if(!this.userInfo){
this.$router.push({path:"/circleList"}); this.$router.push({path:"/circleList"});
} return
this.activeName = 'comment';
this.empContactData = {
baseEmpInformation:{}
};
this.empContactstate = {
isConstact:true,
};
this.getInitInfo();
this.getPersonalCenter();
this.getEmpDataLabelList();
if(this.$route.query.id){
this.selectBaseEmpRelation();
}
if(this.isTrans){
this.isrouterType(to.path);
}else{ }else{
this.isrouterType('/peoplehome/tabs/activity'); this.activeName = 'comment';
this.empContactData = {
baseEmpInformation:{}
};
this.empContactstate = {
isConstact:true,
};
this.getInitInfo();
this.getPersonalCenter();
this.getEmpDataLabelList();
if(this.$route.query.id){
this.selectBaseEmpRelation();
}
if(this.isTrans){
this.isrouterType(to.path);
}else{
this.isrouterType('/peoplehome/tabs/activity');
}
} }
} }
}, },
......
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