improve request

This commit is contained in:
Peter Maquiran
2021-07-09 13:32:17 +01:00
parent cdece357e3
commit 1f34261db4
21 changed files with 74 additions and 23 deletions
@@ -49,8 +49,10 @@ export class PedidosPage implements OnInit {
ngOnInit() {
this.LoadList();
const pathname = window.location.pathname
this.router.events.forEach((event) => {
if(event instanceof NavigationEnd && event.url == this.router.url) {
if(event instanceof NavigationEnd && event.url == pathname) {
this.doRefresh();
}
});