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

提交

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