mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
上传课件给默认值三十分钟
This commit is contained in:
@@ -621,10 +621,11 @@ export default {
|
||||
item.device = 2;
|
||||
}
|
||||
//转化为秒
|
||||
if(item.minute){
|
||||
item.duration=parseFloat(item.minute)*60;
|
||||
}
|
||||
|
||||
// if(item.minute){
|
||||
// item.duration=parseFloat(item.minute)*60;
|
||||
// }
|
||||
// 如果没有给一个默认值30分钟
|
||||
item.duration = item.minute ? parseFloat(item.minute) * 60 : 1800;
|
||||
});
|
||||
this.loading = true;
|
||||
coueseFile.batchUpdate(this.fileList).then(rs => {
|
||||
|
||||
Reference in New Issue
Block a user