Browse Source

油站高亮以及登录判断

beijing
陈鹏飞 3 years ago
parent
commit
b5c89c8723
  1. 5
      src/app/pages/home/home.component.ts

5
src/app/pages/home/home.component.ts

@ -78,7 +78,6 @@ export class HomeComponent implements OnInit {
menuList2 = []
selectedItem
routerChange(item) {
console.log( sessionStorage.getItem("3dSceneData"));
if(JSON.parse(sessionStorage.getItem('isGasStation'))){
let a=JSON.parse(sessionStorage.getItem("3dSceneData"))
if(!a.hasBuildingInfo && item.url == "/plan/petrolStation"){
@ -109,12 +108,8 @@ export class HomeComponent implements OnInit {
this.selectedItem = "今日预警"
}else if(event.url.indexOf("/records_nav")!=-1){
if(event.url=="/records_nav"){
console.log(1);
this.router.navigate(['/records_nav/all'])
}else if(event.url=="/records_nav/petrolStation"){
console.log(4963);
this.router.navigate(['/records_nav/petrolStation/all'])

Loading…
Cancel
Save