mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
上传视频的提示
This commit is contained in:
@@ -564,6 +564,9 @@ export default {
|
|||||||
if(res.result.duration){
|
if(res.result.duration){
|
||||||
res.result.minute=Math.round(res.result.duration/60); //四舍五入
|
res.result.minute=Math.round(res.result.duration/60); //四舍五入
|
||||||
}
|
}
|
||||||
|
if(res.result.duration==0){
|
||||||
|
this.$message.error('上传的视频时长不能为0,请手动编辑时长');
|
||||||
|
}
|
||||||
this.fileList.push(res.result);
|
this.fileList.push(res.result);
|
||||||
}else{
|
}else{
|
||||||
this.$message.error(res.message);
|
this.$message.error(res.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user