chat朋友圈taskpool修改

Signed-off-by: enxue <sunxiaoxiang7@huawei.com>
This commit is contained in:
enxue 2023-09-21 19:46:30 +08:00
parent 20e2d921b7
commit f14e356133

View File

@ -289,7 +289,7 @@ class FriendMomentsData extends BasicDataSource<FriendMoment> {
async function getFriendMomentByTaskPool(jsonUrl) {
// 初始化Task对象传入待执行的方法和参数
let task: taskpool.Task = new taskpool.Task(getWebData, jsonUrl);
// 任务池中添加新对象
// 任务池中添加新对象
let friendMomentArray: Array<FriendMoment> = await taskpool.execute(task, taskpool.Priority.MEDIUM) as Array<FriendMoment>;
let momentData: FriendMomentsData = AppStorage.get<FriendMomentsData>('momentData');
for (let i = 0; i < friendMomentArray.length; i++) {