Commit 21dcb4e4 authored by liujiaxin's avatar liujiaxin

www

parent e9139ba2
......@@ -111,10 +111,10 @@ export class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestro
if (data) {
this.item = data;
if (this.angularCropper) {
this.angularCropper.cropper.reset();
this.angularCropper.cropper.destroy();
}
// if (this.angularCropper) {
// this.angularCropper.cropper.reset();
// this.angularCropper.cropper.destroy();
// }
this.picId = this.item.contentObj.pic_id;
this.currentEditPartIndex = -1;
this.cropperParts.length = 0;
......@@ -387,7 +387,7 @@ export class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestro
const cropper: any = this.angularCropper.cropper;
cropper.previews = [];
this.initPart(img ,idx);
this.initPart(img , idx);
this.save();
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
......
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