Commit 10061acf authored by jeff's avatar jeff

修改bug

parent 4df8c6a9
...@@ -50,12 +50,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -50,12 +50,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
ngOnInit() { ngOnInit() {
this.item = {}; this.item = [];
// 获取存储的数据 // 获取存储的数据
(<any>window).courseware.getData((data) => { (<any>window).courseware.getData((data) => {
if (data) { if (data && data.length) {
this.item = data; this.item = data;
} }
......
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