From 57ef711bbfc024adfb5ca1602b86d95d9a5eb2be Mon Sep 17 00:00:00 2001 From: mujianning Date: Thu, 30 Mar 2023 11:10:37 +0800 Subject: [PATCH] ng-alain15-example main config routes routing fix --- .../main/src/app/routes/routes-routing.module.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ng-alain15-example/main/src/app/routes/routes-routing.module.ts b/ng-alain15-example/main/src/app/routes/routes-routing.module.ts index b6414a1..b933228 100644 --- a/ng-alain15-example/main/src/app/routes/routes-routing.module.ts +++ b/ng-alain15-example/main/src/app/routes/routes-routing.module.ts @@ -24,7 +24,16 @@ const routes: Routes = [ component: LayoutBasicComponent, canActivate: [startPageGuard, SimpleGuard], children: [ - { path: 'micro1/**', component: QiankunContainerComponent, data: { containerId: 'micro1' } }, + { + path: 'micro1', + children: [ + { + path: '**', + component: QiankunContainerComponent, + data: { containerId: 'micro1' }, + }, + ], + }, { path: '', redirectTo: 'dashboard', pathMatch: 'full' }, { path: 'dashboard', component: DashboardComponent, data: { title: '仪表盘', titleI18n: 'dashboard' } }, { path: 'exception', loadChildren: () => import('./exception/exception.module').then(m => m.ExceptionModule) }, -- GitLab