优化任务下载状态显示
This commit is contained in:
@@ -205,6 +205,7 @@ const createTask = async(downloadInfo: LX.Download.ListItem, savePath: string, s
|
||||
downloadInfo.downloaded = status.downloaded
|
||||
downloadInfo.progress = status.progress
|
||||
downloadInfo.speed = status.speed
|
||||
downloadInfo.writeQueue = status.writeQueue
|
||||
sendAction(downloadInfo.id, { action: 'progress', data: status })
|
||||
// console.log(status)
|
||||
},
|
||||
|
||||
@@ -80,6 +80,7 @@ export const createDownloadInfo = (musicInfo: LX.Music.MusicInfoOnline, type: LX
|
||||
total: 0,
|
||||
progress: 0,
|
||||
speed: '',
|
||||
writeQueue: 0,
|
||||
metadata: {
|
||||
musicInfo,
|
||||
url: null,
|
||||
|
||||
Reference in New Issue
Block a user