更新时间:2022-01-10 17:41:17
最后找到了一种简单的方法。 history.pushState({}, Edit, http:// localhost:4200 /); 对于之后的工作正常。
history.pushState({}, Edit, http:// localhost:4200 /);
Found an easy way in the end. history.pushState({},"Edit","http://localhost:4200/"); works fine for what im after.
history.pushState({},"Edit","http://localhost:4200/");
Angular 2路由器事件监听器
如何在angular2中通过打字稿更改路由器?
如何重定向到 Angular2 中的外部 URL?
Angular2 路由问题修复 、求解
angular2路由
Angular 2 - 测试路由参数的变化
Angular2,如何在路由器导航上清除URL查询参数
如何使用angular 2路由器重新加载当前路由
Angular2路由,重页,模拟导航
angular2 路由器导航无法正确加载组件