feat:更新运动健康模块
This commit is contained in:
@@ -22,3 +22,7 @@ export const statsByField = (records: ILedgerRecord[],
|
||||
.sort((a, b) => b.value - a.value)
|
||||
.slice(0, 5)
|
||||
}
|
||||
|
||||
export const getLedgerSortByPrice = (records: ILedgerRecord[]) => {
|
||||
return records.sort((a, b) => b?.totalPrice - a?.totalPrice)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user