Commit ccb75ccd authored by wangxin's avatar wangxin

Update form.component.ts

parent f2ffa671
...@@ -58,6 +58,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -58,6 +58,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
} else { } else {
this.item = {}; this.item = {};
} }
console.log("data " + data);
this.init(); this.init();
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();
...@@ -72,6 +73,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -72,6 +73,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
init() { init() {
if (this.item.contentObj.options) { if (this.item.contentObj.options) {
console.log("picarr " + this.picArr);
this.picArr = this.item.contentObj.options; this.picArr = this.item.contentObj.options;
} }
} }
......
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