Commit ac441f0d authored by zhangyanni's avatar zhangyanni

返回

parent 8fe9cb76
......@@ -114,29 +114,31 @@
if(this.pathfrom){
if(this.pathfrom=='himself'){
this.$emit("hiddenSelect");
}
if(this.pathfrom.indexOf("login")!=-1||this.pathfrom.indexOf("Login")!=-1||this.pathfrom=="/"||this.pathfrom.indexOf("/mobileRegister")!=-1) {
if(this.publicFun.getCookie("selected")&&this.publicFun.getCookie("selected")!="index"){
switch (this.publicFun.getCookie("selected")) {
case "contact":
this.$router.push({path:"/tabconnect",query:{tabIndex:1}})
break;
case "mine":
this.publicFun.setOtherCookie("selected","mine")
this.$router.push("/mine")
}else{
if(this.pathfrom.indexOf("login")!=-1||this.pathfrom.indexOf("Login")!=-1||this.pathfrom=="/"||this.pathfrom.indexOf("/mobileRegister")!=-1) {
if(this.publicFun.getCookie("selected")&&this.publicFun.getCookie("selected")!="index"){
switch (this.publicFun.getCookie("selected")) {
case "contact":
this.$router.push({path:"/tabconnect",query:{tabIndex:1}})
break;
case "mine":
this.publicFun.setOtherCookie("selected","mine")
this.$router.push("/mine")
}
}else{
this.$router.push("/index");
this.publicFun.setUserInfoCookie("selected","index");
globalMsg.$emit("sendSelected","index");
}
}else{
this.$router.push("/index");
this.publicFun.setUserInfoCookie("selected","index");
globalMsg.$emit("sendSelected","index");
}
else if(this.pathfrom=="/mine"){
this.$router.push(this.pathfrom);
}
else {
this.$router.go(-1);
}
}
else if(this.pathfrom=="/mine"){
this.$router.push(this.pathfrom);
}
else {
this.$router.go(-1);
}
}
else {
this.$router.push("/index");
......
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