历史版本根据createTime降序排序
Context testing / run-01 (push) Successful in 53s Details
Context testing / dump_contexts_to_log (push) Successful in 1m29s Details
Context testing / run-02 (push) Successful in 3m20s Details
Context testing / run-04 (push) Successful in 4m44s Details
Context testing / run-03 (push) Successful in 5m1s Details

This commit is contained in:
谢思 2026-06-29 17:43:19 +08:00
parent 1dcaf6a291
commit 18cc06a4ae
1 changed files with 7 additions and 0 deletions

View File

@ -103,6 +103,13 @@ function Index(props) {
}
});
// createTime
historyVersions.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 { currentVersions, historyVersions };
};