|
@ -187,7 +187,7 @@ async function getMonitorData(ctx) { |
|
|
factorNames = item.Items.split(',') |
|
|
factorNames = item.Items.split(',') |
|
|
c = item.ItemUnits.split(',') |
|
|
c = item.ItemUnits.split(',') |
|
|
factorNames.map((child, index) => { |
|
|
factorNames.map((child, index) => { |
|
|
items[factorNames[index]] = { name: factors[index], unit: c[index] } |
|
|
items[factorNames[index]?factorNames[index]:factors[index]] = { name: factors[index], unit: c[index] } |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|