From 14c0efb0709e27076db72b66d67d436c04e76ca0 Mon Sep 17 00:00:00 2001 From: TongTongStudio Date: Wed, 2 Dec 2026 01:48:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(usage):=20=E5=BA=94=E7=94=A8=E5=90=8D?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E6=88=AA=E6=96=AD=E4=B8=BA4=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=EF=BC=8C=E8=B6=85=E9=95=BF=E4=BA=A4=E7=BB=99=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E7=9C=81=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' }))