Commit 47614fef authored by Li Mingzhe's avatar Li Mingzhe

fix: 渲染

parent 51ba960d
...@@ -154,6 +154,9 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -154,6 +154,9 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
// this.init(); // this.init();
this.update(); this.update();
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh(); this.refresh();
} }
...@@ -1313,12 +1316,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges { ...@@ -1313,12 +1316,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
*/ */
refresh() { refresh() {
setTimeout(() => { setTimeout(() => {
this.changeDetectorRef.reattach();
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.appRef.tick(); this.appRef.tick();
}, 1); }, 1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment