Closed my5201314zwl closed 1 year ago
Describe the bug 子项目中 const routes: Routes = [{ path: '', component: HelloComponent, children: [ { path: '', redirectTo: 'test1', pathMatch: 'full' }, { path: 'test1', component: Test1Component }, { path: 'test2', component: Test1Component } ] }];
在test1和test2间进行路由切换,此时浏览器后退按钮不好用。
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
微前端下使用 redirectTo 和 pathMatch: 'full' 有问题,
[ { path: '', redirectTo: 'test1', pathMatch: 'full' }, ]
升级到 15.1.1 版本,替换成 redirectToRoute 即可
[ redirectToRoute('test1') ]
Describe the bug 子项目中 const routes: Routes = [{ path: '', component: HelloComponent, children: [ { path: '', redirectTo: 'test1', pathMatch: 'full' }, { path: 'test1', component: Test1Component }, { path: 'test2', component: Test1Component } ] }];
在test1和test2间进行路由切换,此时浏览器后退按钮不好用。
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.