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.
puhui-go-web/src/app/app.routes.ts

22 lines
660 B

1 year ago
import { Routes } from '@angular/router';
11 months ago
import {IndexComponent} from "./pages/body/index/index.component";
import {InitGuardService} from "./utils/initGuard.service";
export const routes: Routes = [
{path: '', pathMatch: 'full', redirectTo: 'login'},
{
path: 'login',
11 months ago
loadChildren: () => import('./pages/login/login.routes').then(m => m.LOGIN_ROUTES),
canActivate: [InitGuardService]
},
11 months ago
{
path: 'admin', component: IndexComponent,
children: [
{
path: 'index',
loadChildren: () => import('./pages/index/index.routes').then(m => m.INDEX_ROUTES),
canActivate: [InitGuardService]
},
]
}
];