mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 01:46:42 +08:00
Compare commits
1 Commits
master
...
250702-bug
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7eefffed0f |
@@ -624,8 +624,12 @@ export default {
|
||||
// if(item.minute){
|
||||
// item.duration=parseFloat(item.minute)*60;
|
||||
// }
|
||||
// 如果没有给一个默认值30分钟
|
||||
item.duration = item.minute ? parseFloat(item.minute) * 60 : 1800;
|
||||
// 视频文件才可以设置时长,其他类型直接赋值0
|
||||
if (item.fileType === 'mp4' || item.fileType === 'mp3') {
|
||||
item.duration = item.minute ? parseFloat(item.minute) * 60 : 0;
|
||||
} else {
|
||||
item.duration = 0;
|
||||
}
|
||||
});
|
||||
this.loading = true;
|
||||
coueseFile.batchUpdate(this.fileList).then(rs => {
|
||||
|
||||
Reference in New Issue
Block a user