This commit is contained in:
Lingzi
2022-04-06 13:20:20 +08:00
parent a64112037d
commit be16c04fc6
2 changed files with 5 additions and 5 deletions

View File

@ -33,9 +33,9 @@ export class OperationCurveComponent implements OnInit, OnChanges {
}
render(el: ElementRef<HTMLDivElement>): void {
this.el = el.nativeElement
if(!this.service.http.loading){
setTimeout(() => {
this.ngZone.runOutsideAngular(() => this.init(this.el));
}
},500)
}
private init(el: HTMLElement): void {

View File

@ -33,9 +33,9 @@ export class OperationPillarComponent implements OnInit, OnChanges {
}
render(el: ElementRef<HTMLDivElement>): 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 {