From be16c04fc6ac6401e818490d8be05ab4c2778944 Mon Sep 17 00:00:00 2001 From: Lingzi Date: Wed, 6 Apr 2022 13:20:20 +0800 Subject: [PATCH] fix bug --- .../components/operationtable/curve/curve.component.ts | 4 ++-- .../components/operationtable/pillar/pillar.component.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/routes/datatable/components/operationtable/curve/curve.component.ts b/src/app/routes/datatable/components/operationtable/curve/curve.component.ts index ce105bbc..8f163963 100644 --- a/src/app/routes/datatable/components/operationtable/curve/curve.component.ts +++ b/src/app/routes/datatable/components/operationtable/curve/curve.component.ts @@ -33,9 +33,9 @@ export class OperationCurveComponent implements OnInit, OnChanges { } render(el: ElementRef): void { this.el = el.nativeElement - if(!this.service.http.loading){ + setTimeout(() => { this.ngZone.runOutsideAngular(() => this.init(this.el)); - } + },500) } private init(el: HTMLElement): void { diff --git a/src/app/routes/datatable/components/operationtable/pillar/pillar.component.ts b/src/app/routes/datatable/components/operationtable/pillar/pillar.component.ts index 3f056a81..b78f500f 100644 --- a/src/app/routes/datatable/components/operationtable/pillar/pillar.component.ts +++ b/src/app/routes/datatable/components/operationtable/pillar/pillar.component.ts @@ -33,9 +33,9 @@ export class OperationPillarComponent implements OnInit, OnChanges { } render(el: ElementRef): void { this.el = el.nativeElement - if(!this.service.http.loading){ - this.ngZone.runOutsideAngular(() => this.init(this.el)); - } + setTimeout(() => { + this.ngZone.runOutsideAngular(() => this.init(this.el)); + }, 500) } private init(el: HTMLElement): void {