|
|
@ -15,11 +15,11 @@ const routes: Routes = [ |
|
|
|
{ path: '', redirectTo: 'login', pathMatch: 'full' }, |
|
|
|
{ path: '', redirectTo: 'login', pathMatch: 'full' }, |
|
|
|
{ path: 'login', component: LoginComponent }, //登录页
|
|
|
|
{ path: 'login', component: LoginComponent }, //登录页
|
|
|
|
{ path: 'register', component: RegisterComponent }, //注册页
|
|
|
|
{ path: 'register', component: RegisterComponent }, //注册页
|
|
|
|
{ path: 'homepagenologin', component: HomePageNologinComponent }, //注册页
|
|
|
|
// { path: 'homepagenologin', component: HomePageNologinComponent }, //注册页
|
|
|
|
{ |
|
|
|
{ |
|
|
|
path: '', component: HomeComponent, canActivate: [AuthGuard], children: [ |
|
|
|
path: '', component: HomeComponent, canActivate: [AuthGuard], children: [ |
|
|
|
{ path: '', loadChildren: () => import('./pages/pages.module').then(m => m.PagesModule) } |
|
|
|
{ path: '', loadChildren: () => import('./pages/pages.module').then(m => m.PagesModule) } |
|
|
|
] |
|
|
|
]
|
|
|
|
}, //首页
|
|
|
|
}, //首页
|
|
|
|
{ |
|
|
|
{ |
|
|
|
path: '', component: NavigationComponent, canActivate: [AuthGuard], children: [ |
|
|
|
path: '', component: NavigationComponent, canActivate: [AuthGuard], children: [ |
|
|
|