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 036467fb91ace64a90b523cb8b833828078a673f..b6414a1154938dc1ff703b1bf934c5bc46e32237 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) },