Commit 9ae26a53 authored by limingzhe's avatar limingzhe

fix: debug

parent 56ead165
......@@ -47,9 +47,11 @@
<div style="margin-top: 10px; display: flex; ">
<span style="">视频:</span>
<div style="width: 300px;">
<app-upload-video [videoUrl]="ques.video_url || ''"
(videoUploaded)="onVideoUploadSuccess($event, ques, 'video_url')">
<app-upload-video [videoUrl]="ques?.video_url?.replace('.mp4', '_h.mp4')" [showUploadBtn]="true"
(videoUploaded)="onVideoUploaded($event, ques, 'video_url')" >
</app-upload-video>
</div>
<!-- <button *ngIf="ques.video_url" style="float: right;" nz-button nzType="" (click)="onDeleteVideo(ques, 'video_url')">
x
......
......@@ -645,7 +645,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
}
onVideoUploaded(res, key, item) {
onVideoUploaded(res, item, key) {
if (!item) {
item = this.item;
}
......@@ -789,6 +789,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
{
optionArr:[],
optionTypeText: true,
video_url:''
}
);
......
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