历史版本根据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
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:
parent
1dcaf6a291
commit
18cc06a4ae
|
|
@ -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 };
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue