Commit b666901b authored by liujiangnan's avatar liujiangnan

fix: 调试模板

parent 3c1ab92f
......@@ -61,6 +61,7 @@ export class UploadImageWithPreviewComponent implements OnDestroy, OnChanges {
case 'start':
// this.isUploading = true;
// this.progress = 0;
console.log("uploading-start-begin");
this.picUrl = null;
// this.beforeUpload(item.file as any);
......@@ -69,20 +70,22 @@ export class UploadImageWithPreviewComponent implements OnDestroy, OnChanges {
}
this.uploading = true;
this.progress = 0;
console.log("uploading-start-end");
break;
case 'success':
// this.isUploading = false;
// this.uploadSuccess(info.file.response);
// this.audioUploaded.emit(info.file.response);
console.log("uploading-success-begin");
this.uploadSuccess(info.file);
console.log("uploading-success-end");
break;
case 'progress':
console.log("uploading-progress-begin");
this.progress = parseInt(info.event.percent, 10);
this.doProgress(this.progress);
console.log("uploading-progress-end");
break;
}
}
......
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