Commit d381f1ce authored by 邵世尧's avatar 邵世尧

提交

parent a8d754cc
......@@ -16,6 +16,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
side
// @Input()
set item(item) {
this._item = item;
......@@ -31,10 +32,11 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
constructor(private appRef: ApplicationRef) {
}
constructor(private appRef: ApplicationRef,private changeDetectorRef: ChangeDetectorRef) {
}
ngOnInit() {
......@@ -57,6 +59,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
console.log('~data:', data);
this.init();
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
......
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