import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PageCollectionComponent } from './page-collection/page-collection.component';
import { PageRoleComponent } from './page-role/page-role.component';
import { PageUserComponent } from './page-user/page-user.component';
const routes: Routes = [
  {
    path: '',
    redirectTo:'manage/collection',
    pathMatch: "full",
  },
  {
    path: 'manage',
    children:[
      {
        path: 'user', //列表
        component: PageUserComponent,
      },
      {
        path: 'role', //列表
        component: PageRoleComponent,
      },
      {
        path: 'collection', //列表
        component: PageCollectionComponent,
      },
    ]
  }
  
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class NavAdminRoutingModule {}
