fix(watch): 恢复指标进度条原三档配色

≥90% 红、70–89% 黄、<70% 绿。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nexus Agent
2026-06-12 05:29:54 +08:00
parent 3598d38b8e
commit 7a0001d8f4
2 changed files with 3 additions and 2 deletions
@@ -44,4 +44,4 @@ bash scripts/local_verify.sh
## 补充(进度条阈值)
- CPU/内存/硬盘进度条:**≥80% 变红**,低于 80% 为绿色`WatchMetricBar.vue`)。
- CPU/内存/硬盘进度条:≥90% 红、7089% 黄、&lt;70% 绿`WatchMetricBar.vue`)。
@@ -5,7 +5,8 @@ const props = defineProps<{
}>()
function barColor(v: number): string {
if (v >= 80) return 'error'
if (v >= 90) return 'error'
if (v >= 70) return 'warning'
return 'success'
}