当我刷新子页面时,我收到一条错误消息: “无法激活已经激活的插座”。 这是我的路由器模块ts
`const routes: Routes = [{
path: '',
component: citComponent,
children: [
{
path: 'citorder',
component: citorderComponent
}, {
path: 'citorder/citorderdetails',
component: citorderdetailsComponent
},
],
}];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class citRoutingModule { }
export const routedComponents = [
citComponent,
citorderComponent,
citorderdetailsComponent,
];
`
我将从citorderdetailsComponent
重定向到citorderComponent