import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { UsersManagementComponent } from './users-management.component';


const routes: Routes = [
  {
    path: '',
    component: UsersManagementComponent,
    children: [
      {
        // 查看详情
        path: 'userDetail/:id',
        loadChildren: () => import('../user-detail/user-detail.module').then(m => m.UserDetailModule),
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class UsersManagementRoutingModule { }
