配置skipLocationChange: true就可以使参数不显示在url中,但是刷新失效
this.router.navigate(['/heroes', { id: this.hero, foo: 'foo' }], { skipLocationChange: true });
配置skipLocationChange: true就可以使参数不显示在url中,但是刷新失效
this.router.navigate(['/heroes', { id: this.hero, foo: 'foo' }], { skipLocationChange: true });
本文标题:路由传参时url不显示参数
本文链接:https://www.haomeiwen.com/subject/qfqssxtx.html
网友评论