Optimize structure

This commit is contained in:
Taric Xin
2022-05-11 17:47:26 +08:00
parent f1fc336850
commit 28d701a941
9 changed files with 38 additions and 24 deletions

View File

@ -86,7 +86,7 @@ const COMPONENTS: Type<void>[] = [
imports: [
SharedModule,
DatatableRoutingModule,
SHARED_G2_MODULES
...SHARED_G2_MODULES
],
declarations: COMPONENTS,
})

View File

@ -9,6 +9,6 @@ const COMPONENTS: any = [DashboardComponent];
const NOTROUTECOMPONENTS: any = [];
@NgModule({
declarations: [...COMPONENTS, ...NOTROUTECOMPONENTS],
imports: [CommonModule, RegulatoryDataRoutingModule, SharedModule, SHARED_G2_MODULES]
imports: [CommonModule, RegulatoryDataRoutingModule, SharedModule, ...SHARED_G2_MODULES]
})
export class RegulatoryDataModule {}

View File

@ -1,5 +1,5 @@
import { NgModule, Type } from '@angular/core';
import { SharedModule, STWidgetModule } from '@shared';
import { BasicModuleModule, SharedModule, STWidgetModule } from '@shared';
// dashboard pages
import { DashboardComponent } from './dashboard/dashboard.component';
@ -14,9 +14,8 @@ const COMPONENTS_NOROUNT: Array<Type<void>> = [];
@NgModule({
imports: [
LayoutModule,
SharedModule,
BasicModuleModule,
GlobalConfigModule.forRoot(),
STWidgetModule,
RouteRoutingModule
],
declarations: [...COMPONENTS, ...COMPONENTS_NOROUNT],

View File

@ -35,7 +35,7 @@ const COMPONENTS: Type<void>[] = [
imports: [
SharedModule,
TaxManagementModuleRoutingModule,
SHARED_G2_MODULES
...SHARED_G2_MODULES
],
declarations: COMPONENTS,
})