記一下,網上沒找到方法 自己搞了好久 通過跳轉到別的界面在跳回來的方式進行實現
//再次點擊刷新界面
if (this.router.url == item.url) {
this.router.navigateByUrl("/app/home").then(() => {
this.router.navigate([item.url]);
});
} else {
this.router.navigate([item.url]);
}