import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { RhLcdpMainComponent } from './routes/main/lcdp-main/lcdp-main.component'; const routes: Routes = [ { path: 'passport', loadChildren: () => import('./routes/passport/passport.module').then((mod) => mod.PassportModule) }, { path: 'industrialmain', loadChildren: () => import('./routes/main/main.module').then((mod) => mod.RhMainModule) }, { path: '', redirectTo: 'passport', pathMatch: 'full' }, { path: 'exception', loadChildren: () => import('./routes/exception/exception.module').then((mod) => mod.ExceptionModule) }, { // 低代码模式下的通用匹配入口 path: '**', component: RhLcdpMainComponent } ]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) export class AppRoutingModule {}