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.
45 lines
1.6 KiB
45 lines
1.6 KiB
5 years ago
|
import { NgModule } from '@angular/core';
|
||
|
import { Routes, RouterModule } from '@angular/router';
|
||
|
import { LoginComponent } from './pages/login/login.component';
|
||
|
import { NavigationComponent } from './navigation/navigation.component';
|
||
|
import { LockscreenComponent } from './pages/lockscreen/lockscreen.component';
|
||
|
import {HomeComponent} from './home/home.component'
|
||
|
|
||
|
//路由守卫
|
||
|
import {AuthGuard} from './auth.guard'
|
||
|
import {MTokenK1Component} from './m-token-k1/m-token-k1.component' //K1秘钥
|
||
|
import { LuckDrawComponent } from './ui/luck-draw/luck-draw.component';
|
||
|
|
||
|
|
||
|
|
||
|
const routes: Routes = [
|
||
|
//{path:'',redirectTo:'ui/plan',pathMatch:'full',},
|
||
|
/* {
|
||
|
path:'',
|
||
|
component:NavigationComponent,
|
||
|
// canActivate: [AuthGuard],//守卫验证
|
||
|
children:[
|
||
|
{path:'ui',loadChildren:() => import('./ui/ui.module').then(m => m.UiModule)},
|
||
|
// {path:'home',loadChildren:() => import('./pages/pages.module').then(m => m.PagesModule)},
|
||
|
// {path:'visualization',component: HomeComponent},
|
||
|
// {path:'gis',loadChildren:() => import('./gis-management/gis-management.module').then(m => m.GISManagementModule)}
|
||
|
]
|
||
|
}, */
|
||
|
{path:'',component:LuckDrawComponent},
|
||
|
// {path:'login',
|
||
|
// component:LoginComponent},
|
||
|
|
||
|
// {path:'getNoMToken',
|
||
|
// component:MTokenK1Component, canActivate: [AuthGuard],}, //K1秘钥验证失败是跳转页面
|
||
|
|
||
|
// {path:'lockscreen',
|
||
|
// component:LockscreenComponent,
|
||
|
// canActivate: [AuthGuard]}//守卫验证
|
||
|
];
|
||
|
|
||
|
@NgModule({
|
||
|
imports: [RouterModule.forRoot(routes)],
|
||
|
exports: [RouterModule]
|
||
|
})
|
||
|
export class AppRoutingModule { }
|