소스 검색

修改提交视频地址

yuhongqi 21 시간 전
부모
커밋
e922132fe5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;