diff --git a/api/app/lib/controllers/alarm/data.js b/api/app/lib/controllers/alarm/data.js index 447f577..4e8ad77 100644 --- a/api/app/lib/controllers/alarm/data.js +++ b/api/app/lib/controllers/alarm/data.js @@ -172,8 +172,8 @@ async function list (ctx) { // } else { // corConfirmedData = {} // } - ar.confirmedContent = corConfirmedData.Content - ar.confirmedTime = corConfirmedData.Time + ar.confirmedContent = corConfirmedData.Content || null + ar.confirmedTime = corConfirmedData.Time || null // 告警详情的数量 ar.detailCount = (alarmDetailCount.find(adc => adc.AlarmId == ar.AlarmId) || { count: 0 }).count