Commit 2a09042e authored by liujiangnan's avatar liujiangnan

feat

parent 7dd01852
......@@ -32,7 +32,6 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
item = {
video_url: "",
pic_id: ""
};
constructor(public nzMessageService: NzMessageService, private http: HttpClient, public appRef: ApplicationRef, public changeDetectorRef: ChangeDetectorRef) {
......@@ -108,8 +107,6 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
this.http.post(this.uploadUrl, formData).subscribe(
(res: any) => {
(window as any).courseware.sendEvent("screenshot", {"url": res.url}, this.saveKey);
this.item.pic_id = res.url;
this.save();
},
(err) => {
console.log(err);
......
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