From 3919f29b18a8af65c5f0bc9669cc2b35e831d3d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Wed, 15 Nov 2023 16:24:28 +0800 Subject: [PATCH] feat:fix bugs --- api/app/lib/controllers/monitor/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/lib/controllers/monitor/index.js b/api/app/lib/controllers/monitor/index.js index e2196d4..8425426 100644 --- a/api/app/lib/controllers/monitor/index.js +++ b/api/app/lib/controllers/monitor/index.js @@ -148,7 +148,7 @@ async function getMonitorData(ctx) { factors = item.ItemNames.split(',') factorNames = item.Items.split(',') factors.map((child,index)=> { - items[factorNames[index]] = { name: child, unit: item.ItemUnits } + items[factorNames[index]] = { name: child, unit:factorNames[index] } }) }) }