You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.3 KiB
43 lines
1.3 KiB
3 years ago
|
import { NgModule } from '@angular/core';
|
||
|
import { RouterModule, Routes } from '@angular/router';
|
||
|
import { BasicInfoComponent } from './basic-info/basic-info.component';
|
||
|
import { StatisticAnalysisComponent } from './statistic-analysis/statistic-analysis.component';
|
||
|
import { OrComponent } from './system-management/or/or.component';
|
||
|
import { RoleComponent } from './system-management/role/role.component';
|
||
|
import { SystemManagementComponent } from './system-management/system-management.component';
|
||
|
import { UserComponent } from './system-management/user/user.component';
|
||
|
import { TaskComponent } from './task/task.component';
|
||
|
|
||
|
const routes: Routes = [
|
||
|
{ path: 'basicInfo', component: BasicInfoComponent },
|
||
|
{ path: 'task', component: TaskComponent },
|
||
|
{ path: 'statistic', component: StatisticAnalysisComponent },
|
||
|
{
|
||
|
path: 'system', component: SystemManagementComponent,
|
||
|
children: [
|
||
|
{
|
||
|
path: '',
|
||
|
component: RoleComponent,
|
||
|
},
|
||
|
{
|
||
|
path: 'role',
|
||
|
component: RoleComponent,
|
||
|
},
|
||
|
{
|
||
|
path: 'user',
|
||
|
component: UserComponent,
|
||
|
},
|
||
|
{
|
||
|
path: 'or',
|
||
|
component: OrComponent,
|
||
|
}
|
||
|
],
|
||
|
}
|
||
|
];
|
||
|
|
||
|
@NgModule({
|
||
|
imports: [RouterModule.forChild(routes)],
|
||
|
exports: [RouterModule]
|
||
|
})
|
||
|
export class HomeRoutingModule { }
|