刷新页面时无法激活已经激活的插座

时间:2019-02-12 08:25:27

标签: angular router-outlet

当我刷新子页面时,我收到一条错误消息: “无法激活已经激活的插座”。 这是我的路由器模块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

0 个答案:

没有答案