From 51e985307d59c3c5fddd8eb97daa9c74e64c2ae2 Mon Sep 17 00:00:00 2001 From: mujianning Date: Wed, 29 Mar 2023 18:59:18 +0800 Subject: [PATCH] ng-alain15-example main config routes routing --- .../main/src/app/routes/routes-routing.module.ts | 3 +++ 1 file changed, 3 insertions(+) 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 036467f..b6414a1 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 @@ -16,12 +16,15 @@ import { UserLoginComponent } from './passport/login/login.component'; import { UserRegisterResultComponent } from './passport/register-result/register-result.component'; import { UserRegisterComponent } from './passport/register/register.component'; +import { QiankunContainerComponent } from './qiankun-container/qiankun-container.component'; + const routes: Routes = [ { path: '', component: LayoutBasicComponent, canActivate: [startPageGuard, SimpleGuard], children: [ + { path: 'micro1/**', 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