加入百分比符号

This commit is contained in:
2026-02-02 10:53:13 +08:00
parent 21fa6ef70f
commit a43690930b
2 changed files with 2 additions and 1 deletions

View File

@@ -263,6 +263,7 @@ Math.round((memoryValue / maxMemory) * 100),
);// 使用micro.js的图表功能创建仪表盘
mw.chart.createGauge(mw.$("#memory-gauge"), percentage, 100, {
label: "内存使用率",
percent: true,
color:
percentage > 80
? "#e74c3c"