Angular 2/4/5+ 重複點擊菜單刷新界面

記一下,網上沒找到方法 本身搞了很久  經過跳轉到別的界面在跳回來的方式進行實現
 
 
 
      //再次點擊刷新界面
      if (this.router.url == item.url) {
        this.router.navigateByUrl("/app/home").then(() => {
          this.router.navigate([item.url]);
        });
      } else {
        this.router.navigate([item.url]);
      }
相關文章
相關標籤/搜索