Commit cbdd51fb authored by 邓晓峰's avatar 邓晓峰

fix: 修复消息报警alarmContent字段取值

parent 2285755c
Pipeline #38651 passed with stages
in 12 minutes 56 seconds
import React from 'react'; import React from 'react';
import _ from 'lodash';
import classNames from 'classnames'; import classNames from 'classnames';
import { findPathByWidget, isJSON } from '../../../../utils/utils'; import { findPathByWidget, isJSON } from '../../../../utils/utils';
import commonStyles from '../common.less'; import commonStyles from '../common.less';
...@@ -70,7 +70,7 @@ const Alarm = ({ message, confirmRead, config }) => { ...@@ -70,7 +70,7 @@ const Alarm = ({ message, confirmRead, config }) => {
<p style={{color: '#888'}} > <p style={{color: '#888'}} >
{ {
alarmContent && alarmContent.content.split(",")[1] alarmContent && _.isString(alarmContent.content) && alarmContent.content.split(",")[1]
} }
</p> </p>
<p className={commonStyles.messageTime}>{message.time}</p> <p className={commonStyles.messageTime}>{message.time}</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment