diff --git a/pages/home/index.ts b/pages/home/index.ts index 7e38e2b..48aa1f5 100644 --- a/pages/home/index.ts +++ b/pages/home/index.ts @@ -301,7 +301,7 @@ Page({ const colors = ['#07C160', '#5B8DEF', '#F5A623'] const items: UsageItem[] = (day.apps || []).slice(0, 3).map((app, index) => ({ key: String(index), - label: (app.appName || app.packageName || '').slice(0, 4), + label: app.appName || app.packageName || '', percent: total > 0 ? Math.round(((Number(app.totalMs) || 0) * 100) / total) : 0, color: colors[index] || '#94A3B8' }))