Commit ab38604a47ceb75fa376795e089a08bb4a48fb00

Authored by fengwotao
1 parent 9d289fd2

fix: 查看告警详情,没有单位触发值显示undefined

Showing 1 changed file with 3 additions and 1 deletions
... ... @@ -113,7 +113,9 @@
113 113 const value = {
114 114 ['触发属性']: findName,
115 115 ['触发条件']: `${findLogin}${curr.value.logicValue}`,
116   - ['触发值']: `${curr.value.realValue}${findAttribute.detail?.dataType?.specs?.unit?.key}`,
  116 + ['触发值']: `${curr.value.realValue}${
  117 + findAttribute.detail?.dataType?.specs?.unit?.key ?? ''
  118 + }`,
117 119 };
118 120 const data = {
119 121 [item.name]: value,
... ...