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

31 lines
985 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 = [
11 months ago
{path: '', pathMatch: 'full', redirectTo: 'admin/index'},
{
path: 'login',
11 months ago
loadChildren: () => import('./pages/login/login.routes').then(m => m.LOGIN_ROUTES)
},
11 months ago
{
path: 'admin', component: IndexComponent,
children: [
{
path: 'index',
loadChildren: () => import('./pages/index/index.routes').then(m => m.INDEX_ROUTES),
canActivate: [InitGuardService]
},
11 months ago
{
path: 'account',
loadChildren: () => import('./pages/account/account.routes').then(m => m.ACCOUNT_ROUTES),
canActivate: [InitGuardService]
},
11 months ago
{
path: 'system',
loadChildren: () => import('./pages/system/system.routes').then(m => m.SYSTEM_ROUTES),
canActivate: [InitGuardService]
},
11 months ago
]
}
];