12.10提交
This commit is contained in:
@@ -14,6 +14,9 @@ class DownloadStoreFile {
|
||||
url: '',
|
||||
status: 'downloading', // downloading, paused, completed, failed
|
||||
progress: 0,
|
||||
title:'',
|
||||
type:'',
|
||||
releaseTime:'',
|
||||
task: null,
|
||||
filePath: '',
|
||||
createTime: Date.now(),
|
||||
@@ -93,6 +96,9 @@ class DownloadStoreFile {
|
||||
filePath: item.filePath,
|
||||
createTime: item.createTime,
|
||||
localPath:item.localPath,
|
||||
title:item.title,
|
||||
type:item.type,
|
||||
releaseTime:item.releaseTime,
|
||||
}));
|
||||
uni.setStorageSync('downloadFileTasks', tasksToSave);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user