[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
+1 -1
View File
@@ -54,7 +54,7 @@ const EMPTY_STATS: MeasureStatistics = {
}
/** 从生日字符串(YYYY-MM-DD)计算周岁 */
function calcAge(birthday: string): number {
const calcAge = (birthday: string): number => {
if (!birthday) return 0
const [year, month, day] = birthday.split('-').map(Number)
if (!year || !month || !day) return 0