[AI Generated]: feat(*): 完善数据页切换成员、首页接口对接及我的页缓存信息展示

This commit is contained in:
17792275749
2026-05-15 15:40:33 +08:00
parent db74e0fdc9
commit 24d0ebec23
9 changed files with 37 additions and 205 deletions
@@ -63,7 +63,7 @@ const EMPTY_RECORD: WeightRecord = {
}
/** 将体重数字拆成整数 + 小数字符串 */
function splitWeight(weight: number): { int: number; decimal: string } {
const splitWeight = (weight: number): { int: number; decimal: string } => {
const str = weight.toFixed(2)
const [intPart, decPart] = str.split('.')
return { int: Number(intPart), decimal: `.${decPart}` }