Commit 54171e7a authored by Davve's avatar Davve

修改帖子视频上传时长限制

parent cdbce727
......@@ -657,9 +657,9 @@
let data = res.data
this.uploading = false
let duration = data.format.duration
if (Math.round(duration) > 60) {
if (Math.round(duration) > 1200) {
this.$message({
message: '视频时长不能大于1分钟',
message: '视频时长不能大于20分钟',
type: 'warning'
})
this.edit.video_url = ''
......
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