Browse Source

修改提交视频地址

yuhongqi 7 hours ago
parent
commit
e922132fe5
1 changed files with 1 additions and 1 deletions
  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;