Commit c847dc3c authored by 李维's avatar 李维

dev commit

parent df5698d3
......@@ -111,8 +111,9 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
onBackgroundUploadSuccess(e) {
this.bgItem.url = e.url;
this.refreshBackground();
this.refreshBackground(()=>{
this.autoSave()
});
}
refreshBackground(callBack = null) {
......@@ -331,9 +332,6 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
this.refreshHotZoneId();
}
initImgArr() {
let curBgRect;
if (this.bg) {
......
......@@ -33,7 +33,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.item.contentObj = {};
const getData = (<any> window).courseware.getData;
getData((data) => {
console.log("读取数据", data)
// console.log("读取数据", data)
if (data) {
this.item = data;
} else {
......@@ -150,7 +150,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
save() {
(<any> window).courseware.setData(this.item, null, this.KEY);
this.refresh();
console.log("保存", this.item)
// console.log("保存", this.item)
}
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