From a3f6c4a5889d880ebbe6120cb9ec80c3fd161219 Mon Sep 17 00:00:00 2001 From: richard-loafle <44828666+richard-loafle@users.noreply.github.com> Date: Fri, 17 Apr 2020 09:59:37 +0900 Subject: [PATCH] bug fixed --- src/app/layouts/components/default.layout.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/layouts/components/default.layout.component.ts b/src/app/layouts/components/default.layout.component.ts index 6b9d86b..25396bb 100644 --- a/src/app/layouts/components/default.layout.component.ts +++ b/src/app/layouts/components/default.layout.component.ts @@ -12,7 +12,7 @@ import { LogService } from '@ucap/ng-logger'; import { AppSelector } from '@app/store/state'; -const NAVS = ['group', 'chat', 'organization', 'message']; +const NAVS = ['group/', 'chat/', 'organization/', 'message/']; @Component({ selector: 'app-layouts-default', @@ -57,7 +57,10 @@ export class DefaultLayoutComponent implements OnInit, OnDestroy { } onSelectedTabChange(event: MatTabChangeEvent) { - this.router.navigate([{ outlets: { primary: NAVS[event.index] } }]); + this.router.navigate([ + NAVS[event.index], + { outlets: { content: 'index' } } + ]); } onClickToggleLeftSidenav() {