fix(usage): 应用名不再截断为4字符,超长交给样式省略
This commit is contained in:
1 parent
b25b42a62e
commit
14c0efb070
1 file changed
+1
-1
+1
-1
@@ -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'
|
||||
}))
|
||||
|
||||
Reference in new issue
Block a user