Commit 56ead165 authored by limingzhe's avatar limingzhe

fix: debug

parent cd6d9e02
......@@ -47,13 +47,13 @@
<div style="margin-top: 10px; display: flex; ">
<span style="">视频:</span>
<div style="width: 300px;">
<app-upload-video [videoUrl]="ques.video_url"
<app-upload-video [videoUrl]="ques.video_url || ''"
(videoUploaded)="onVideoUploadSuccess($event, ques, 'video_url')">
</app-upload-video>
</div>
<button *ngIf="ques.video_url" style="float: right;" nz-button nzType="" (click)="onDeletaImg(ques, 'video_url')">
<!-- <button *ngIf="ques.video_url" style="float: right;" nz-button nzType="" (click)="onDeleteVideo(ques, 'video_url')">
x
</button>
</button> -->
</div>
</div>
......
......@@ -676,6 +676,13 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
delete item[key];
this.save();
}
onDeleteVideo(item, key) {
item[key] = '';
this.save();
}
/**
* 储存图片数据
* @param e
......
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