Commit e5e6af37 authored by wangxin's avatar wangxin

reload2

parent 25808475
......@@ -45,12 +45,6 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
ngOnInit() {
this.item = {};
this.item.contentObj = {};
if (!this.item.contentObj) {
this.item.contentObj = {};
}
this.picArr = [];
// 获取存储的数据
(<any>window).courseware.getData((data) => {
......@@ -73,10 +67,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
ngOnDestroy() {}
init() {
if (this.item.contentObj.options) {
if (this.item.options) {
console.log("picarr " + this.picArr);
this.picArr = this.item.contentObj.options;
this.picArr = this.item.options;
// v1.0
}
......
/**
* 主场景 v1.0
* 主场景 v1.2
*/
cc.Class({
......
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