|
|
|
@ -45,16 +45,19 @@ export class NavigationComponent implements OnInit {
|
|
|
|
|
this.menuList1.push(this.menu1[index]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
console.log(this.menuList1); |
|
|
|
|
// console.log(this.menuList1);
|
|
|
|
|
} |
|
|
|
|
for (let index = 0; index < this.menu3.length; index++) { |
|
|
|
|
let url="" |
|
|
|
|
for (let k = 0; k < this.tap.length; k++) { |
|
|
|
|
if (this.tap[k]==this.menu3[index].name) { |
|
|
|
|
this.menuList2.push(this.menu3[index])
|
|
|
|
|
|
|
|
|
|
if(JSON.parse(a).userName=="admin"){ |
|
|
|
|
this.menuList2=this.menu3 |
|
|
|
|
}else{ |
|
|
|
|
for (let k = 0; k < this.tap.length; k++) { |
|
|
|
|
if (this.tap[k]==this.menu3[index].name) { |
|
|
|
|
this.menuList2.push(this.menu3[index])
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|