Commit 56795da7 authored by 乐宝呗666's avatar 乐宝呗666

修改视频格式的限制

parent f857ef34
...@@ -372,11 +372,9 @@ export default { ...@@ -372,11 +372,9 @@ export default {
this.form.videos.push(item.fileUrl); this.form.videos.push(item.fileUrl);
this.videoIds.push(item.id); this.videoIds.push(item.id);
}) })
}else{ }else{
this.$toast(res.data.message) this.$toast(res.data.message)
} }
}) })
.catch(function (err) { .catch(function (err) {
console.log(err); console.log(err);
......
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
item.images = []; item.images = [];
item.audio = []; item.audio = [];
arr.forEach((result) => { arr.forEach((result) => {
if (/\.(MP4|MPEG|Ogg|WebM)/i.test(result)) { if (/\.(MP4|MPEG|Ogg|WebM|MOV)/i.test(result)) {
item.videos.push(result); item.videos.push(result);
} else if (/\.(MP3|Wav|Ogg)/i.test(result)) { } else if (/\.(MP3|Wav|Ogg)/i.test(result)) {
item.audio.push(result); item.audio.push(result);
......
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