作业布置:列表排序修改

This commit is contained in:
白了个白 2024-10-14 11:22:37 +08:00
parent 58988313b7
commit ed035f94ed
1 changed files with 5 additions and 0 deletions

View File

@ -391,6 +391,10 @@ const getTaskList = async () => {
let model = [];
let mission = [];
if(res.rows&&res.rows.length > 0){
//
res.rows.sort((a, b) => new Date(b.timestamp) - new Date(a.timestamp));
}
for (let item of res.rows){
item.taskconfig = [];
@ -473,6 +477,7 @@ const getTaskList = async () => {
}
list.push(item);
}
//
taskList.value = list;
loading.value = false;
})