|
@@ -2,7 +2,7 @@ import { Routes,mapToCanActivate } from '@angular/router';
|
|
|
import { AuthGuard } from '../services/auth.guard';
|
|
|
import { CompUserComponent } from './comp-user/comp-user.component';
|
|
|
import { ProfileComponent } from '../modules/user/profile/profile.component'
|
|
|
-
|
|
|
+import { CompManageComponent } from './comp-manage/comp-manage.component'
|
|
|
export const routes: Routes = [
|
|
|
{ path: '',loadComponent:()=>import('../modules/textbook/page-home/page-home.component').then(m=>m.PageHomeComponent) }, // 默认跳转到 ''
|
|
|
{
|
|
@@ -16,32 +16,38 @@ export const routes: Routes = [
|
|
|
},
|
|
|
{
|
|
|
path: 'nav-admin', //国家级管理员管理平台
|
|
|
- //canActivate: mapToCanActivate([AuthGuard]),
|
|
|
+ component: CompManageComponent,
|
|
|
+ canActivate: mapToCanActivate([AuthGuard]),
|
|
|
loadChildren: () =>import('../modules/nav-admin/modules.routes').then((mod) => mod.NavAdminRoutingModule),
|
|
|
},
|
|
|
{
|
|
|
path: 'nav-province-submit',//省级教育行政部门
|
|
|
- //canActivate: mapToCanActivate([AuthGuard]),
|
|
|
+ component: CompManageComponent,
|
|
|
+ canActivate: mapToCanActivate([AuthGuard]),
|
|
|
loadChildren: () =>import('../modules/nav-province-submit/modules.routes').then((mod) => mod.NavProRoutingModule),
|
|
|
},
|
|
|
{
|
|
|
path: 'nav-province-contact',//中央部门所属高校联系人、部省合建高校联系人、出版单位联系人、省属高校流程管理员
|
|
|
- //canActivate: mapToCanActivate([AuthGuard]),
|
|
|
+ component: CompManageComponent,
|
|
|
+ canActivate: mapToCanActivate([AuthGuard]),
|
|
|
loadChildren: () =>import('../modules/nav-province-contact/modules.routes').then((mod) => mod.NavProContactRoutingModule),
|
|
|
},
|
|
|
{
|
|
|
path: 'nav-province-school-contact', //省属高校联系人
|
|
|
- //canActivate: mapToCanActivate([AuthGuard]),
|
|
|
+ component: CompManageComponent,
|
|
|
+ canActivate: mapToCanActivate([AuthGuard]),
|
|
|
loadChildren: () =>import('../modules/nav-province-school-contact/modules.routes').then((mod) => mod.NavProSchoolRoutingModule),
|
|
|
},
|
|
|
{
|
|
|
path: 'nav-review', //教材评审组成员
|
|
|
- //canActivate: mapToCanActivate([AuthGuard]),
|
|
|
+ component: CompManageComponent,
|
|
|
+ canActivate: mapToCanActivate([AuthGuard]),
|
|
|
loadChildren: () =>import('../modules/nav-review/modules.routes').then((mod) => mod.NavReviewRoutingModule),
|
|
|
},
|
|
|
{
|
|
|
path: 'nav-author', //作者 / 教师 / 主编
|
|
|
- //canActivate: mapToCanActivate([AuthGuard]),
|
|
|
+ component: CompManageComponent,
|
|
|
+ canActivate: mapToCanActivate([AuthGuard]),
|
|
|
loadChildren: () =>import('../modules/nav-author/modules.routes').then((mod) => mod.NavAuthorRoutingModule),
|
|
|
},
|
|
|
];
|