你想的太多了,你可以直接在main.ts里 写 location.hash = ”“; 清除后链,这样路由就不会乱跑了
缺点是定点开始
如果你想指定页面可以加判断
0
Reputation
3
Posts
1041
Profile views
0
Followers
0
Following
Posts made by david
RE: angular项目中在ts文件中实现跳转到主页
posted in questions •