Pārlūkot izejas kodu

修改提交视频地址

yuhongqi 21 stundas atpakaļ
vecāks
revīzija
e922132fe5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/views/live/liveVideo/index.vue

+ 1 - 1
src/views/live/liveVideo/index.vue

@@ -243,7 +243,7 @@ export default {
             this.msgError("请上传视频");
             return;
           }
-          this.form.videoUrl.replace(/\.mp4$/, '.m3u8');
+          this.form.videoUrl = this.form.videoUrl.replace('.mp4', '.m3u8');
           addLiveVideo(this.form).then(response => {
             this.msgSuccess("新增成功");
             this.open = false;