diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 2c30b188..73af1c10 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -52,7 +52,6 @@ import { LayoutModule } from './layout/layout.module'; import { RoutesModule } from './routes/routes.module'; import { SharedModule } from './shared/shared.module'; import { STWidgetModule } from './shared/widget/st-widget.module'; -import { Observable } from 'rxjs'; import { registerLocaleData } from '@angular/common'; @NgModule({ diff --git a/src/app/global-config.module.ts b/src/app/global-config.module.ts index 1e998b36..e8e3522c 100644 --- a/src/app/global-config.module.ts +++ b/src/app/global-config.module.ts @@ -21,12 +21,12 @@ const alainProvides = [{ provide: ALAIN_CONFIG, useValue: alainConfig }]; // #region reuse-tab -import { RouteReuseStrategy } from '@angular/router'; -alainProvides.push({ - provide: RouteReuseStrategy, - useClass: ReuseTabStrategy, - deps: [ReuseTabService] -} as any); +// import { RouteReuseStrategy } from '@angular/router'; +// alainProvides.push({ +// provide: RouteReuseStrategy, +// useClass: ReuseTabStrategy, +// deps: [ReuseTabService] +// } as any); // #endregion @@ -51,9 +51,9 @@ export class GlobalConfigModule { throwIfAlreadyLoaded(parentModule, 'GlobalConfigModule'); // NOTICE: Only valid for menus with reuse property // Pls refer to the E-Mail demo effect - reuseTabService.mode = ReuseTabMatchMode.MenuForce; + // reuseTabService.mode = ReuseTabMatchMode.MenuForce; // Shouled be trigger init, you can ingore when used `reuse-tab` component in layout component - reuseTabService.init(); + // reuseTabService.init(); } static forRoot(): ModuleWithProviders { diff --git a/src/app/layout/pro/pro.service.ts b/src/app/layout/pro/pro.service.ts index 258dbf4b..ba597366 100644 --- a/src/app/layout/pro/pro.service.ts +++ b/src/app/layout/pro/pro.service.ts @@ -23,7 +23,7 @@ export class BrandService { * @alain-pro-sider-menu-width: 256px; * ``` */ - readonly width = 256; + readonly width = 205; /** * Specify width of the sidebar after collapsed, If you change it, muse be synchronize change less parameter: diff --git a/src/app/routes/logs/components/system-logs/system-logs.component.ts b/src/app/routes/logs/components/system-logs/system-logs.component.ts index 775e4f4a..8fef4e7a 100644 --- a/src/app/routes/logs/components/system-logs/system-logs.component.ts +++ b/src/app/routes/logs/components/system-logs/system-logs.component.ts @@ -76,12 +76,13 @@ export class SystemLogsComponent implements OnInit { _$expand = false; - constructor(public service: LogsService, private nzModalService: NzModalService) {} + constructor(public service: LogsService) {} - ngOnInit(): void {} + ngOnInit(): void { + } beforeReq = (requestOptions: STRequestOptions) => { - requestOptions.body.operateType = '1' + requestOptions.body.operateType = '1'; if (this.sf) { Object.assign(requestOptions.body, { ...this.sf.value,