提交记录排序

This commit is contained in:
WindowBird 2025-11-13 16:52:06 +08:00
parent 92ee88a961
commit 6da442b49e

View File

@ -335,7 +335,13 @@ const transformSubmitRecords = (submitList) => {
return [];
}
return submitList.map(item => {
const sortedList = [...submitList].sort((a, b) => {
const timeA = a?.createTime ? new Date(a.createTime).getTime() : 0;
const timeB = b?.createTime ? new Date(b.createTime).getTime() : 0;
return timeB - timeA;
});
return sortedList.map(item => {
// URL
let imageAttachments = [];
let fileAttachments = [];