Commit d1e68e79 authored by Li Mingzhe's avatar Li Mingzhe

fix: upload pic

parent ff581483
...@@ -33,6 +33,13 @@ export class UploadImageWithPreviewComponent implements OnDestroy, OnChanges { ...@@ -33,6 +33,13 @@ export class UploadImageWithPreviewComponent implements OnDestroy, OnChanges {
uploadData = (<any> window).courseware.uploadData(); uploadData = (<any> window).courseware.uploadData();
constructor(private nzMessageService: NzMessageService) { constructor(private nzMessageService: NzMessageService) {
this.uploadUrl = (<any> window).courseware.uploadUrl();
this.uploadData = (<any> window).courseware.uploadData();
window['air'].getUploadCallback = (url, data) => {
this.uploadUrl = url;
this.uploadData = data;
};
} }
ngOnChanges() { ngOnChanges() {
if (!this.picItem) { if (!this.picItem) {
......
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