|
|
|
@ -12,6 +12,7 @@ import { AddSixFamiliarComponent } from './ui/add-six-familiar/add-six-familiar.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const routes: Routes = [ |
|
|
|
|
{path:'',redirectTo:'login',pathMatch:'full'}, |
|
|
|
|
{ |
|
|
|
@ -31,8 +32,11 @@ const routes: Routes = [
|
|
|
|
|
component:LoginComponent}, |
|
|
|
|
|
|
|
|
|
{path:'getNoMToken', |
|
|
|
|
component:MTokenK1Component, canActivate: [AuthGuard],}, //K1秘钥验证失败是跳转页面
|
|
|
|
|
]; |
|
|
|
|
component:MTokenK1Component, canActivate: [AuthGuard],}, |
|
|
|
|
//K1秘钥验证失败是跳转页面
|
|
|
|
|
{path:'home', component:HomeComponent,canActivate: [AuthGuard],}//守卫验证
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@NgModule({ |
|
|
|
|
imports: [RouterModule.forRoot(routes)], |
|
|
|
|