首页 > 解决方案 > Angular 6 - 使用 window.location.reload() 时重复重新加载页面

问题描述

我正在使用 Angular 6,当用户点击主页时,我需要重新加载相同的路由 url。我尝试在 ngOnit 中使用 window.location.reload(),但屏幕反复重新加载。我只想重新加载主页一次。

标签: angular6

解决方案


推荐阅读