![Angular 2/4/5+ 重复点击菜单刷新界面 Angular 2/4/5+ 重复点击菜单刷新界面](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
记一下,网上没找到方法 自己搞了好久 通过跳转到别的界面在跳回来的方式进行实现
//再次点击刷新界面
if (this.router.url == item.url) {
this.router.navigateByUrl("/app/home").then(() => {
this.router.navigate([item.url]);
});
} else {
this.router.navigate([item.url]);
}