This commit is contained in:
zhutianqi
2021-11-17 09:58:49 +08:00
parent 0872727ca3
commit df720fe928
2 changed files with 38 additions and 75 deletions
@@ -79,22 +79,23 @@ export default {
}
}
});
if(this.country === true){
this.tabValue = "listOfCountries"
return;
}else if(this.project === true){
this.tabValue = "listProject"
return;
}else if(this.tracking === true){
this.tabValue = "listTracking"
return;
}else if(this.other === true){
this.tabValue = "listOther"
return;
}else if(this.library === true){
this.tabValue = "localProductsOrProjectLibrary"
return;
}
this.tabValue = this.country ? 'listOfCountries' : (this.project ? 'listProject' : (this.tracking ? 'listTracking' : (this.other ? 'listOther' : (this.library ? 'localProductsOrProjectLibrary' : ''))))
// if(this.country){
// this.tabValue = "listOfCountries"
// return;
// }else if(this.project){
// this.tabValue = "listProject"
// return;
// }else if(this.tracking){
// this.tabValue = "listTracking"
// return;
// }else if(this.other){
// this.tabValue = "listOther"
// return;
// }else if(this.library){
// this.tabValue = "localProductsOrProjectLibrary"
// return;
// }
},
beforeRouteLeave(to, from, next) {
const toName = ["ListOfStandardsAndRegulationsDetails", "AccessStandardDetails", "LocalProductDetail", "OtherAddEit"];