|
@@ -5,12 +5,14 @@ import {ModuleUserComponent} from './module/module-user/module-user.component';
|
|
|
import {ModuleSettingComponent} from './module/module-setting/module-setting.component';
|
|
|
import {ModuleReportComponent} from './module/module-report/module-report.component';
|
|
|
import {UserListComponent} from './module/module-user/user-list/user-list.component';
|
|
|
+import {UserAddComponent} from './module/module-user/user-add/user-add.component';
|
|
|
|
|
|
const router:Routes = [
|
|
|
{path:"",redirectTo:"dashboard",pathMatch:"full"},
|
|
|
{path:"dashboard",component:ModuleDashboardComponent},
|
|
|
{path:"user",component:ModuleUserComponent, children:[
|
|
|
- {path:"",component:UserListComponent}
|
|
|
+ {path:"",component:UserListComponent},
|
|
|
+ {path:"add",component:UserAddComponent}
|
|
|
]},
|
|
|
{path:"setting",component:ModuleSettingComponent},
|
|
|
{path:"report",component:ModuleReportComponent}
|