@@ -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;