mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
improve request
This commit is contained in:
@@ -112,10 +112,15 @@ export class GabineteDigitalPage implements OnInit {
|
||||
|
||||
|
||||
ngOnInit() {
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == this.router.url) {
|
||||
const pathname = window.location.pathname
|
||||
|
||||
this.router.events.forEach((event) => {
|
||||
if(event instanceof NavigationEnd && event.url == pathname) {
|
||||
this.checkRoutes();
|
||||
this.LoadCounts();
|
||||
console.log('yes', pathname)
|
||||
} else {
|
||||
console.log('not')
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user