Commit 9867bba3 authored by 杨思琦's avatar 杨思琦

fix: 报警跳转修复

parent 12183c1d
Pipeline #67854 passed with stages
......@@ -50,11 +50,15 @@ const Alarm = ({ message, confirmRead, config, handlerUnknowDetail }) => {
'',
'url',
);
window.share.event.emit('listenerMointer', {
widgetId: widgetID,
label: '实时报警',
url: widget.url || webPath,
});
if (window?.share?.event?._events?.listenerMointer) {
window.share.event.emit('listenerMointer', {
widgetId: widgetID,
label: '实时报警',
url: widget.url || webPath,
});
} else {
handlerUnknowDetail(message);
}
}
confirmRead(false, [message.id]);
};
......
/* eslint-disable no-underscore-dangle */
import React from 'react';
import { ConfigProvider } from 'antd';
// eslint-disable-next-line import/no-unresolved
......@@ -52,11 +53,15 @@ const Case = ({ message, confirmRead, handlerUnknowDetail }) => {
break;
}
const webPath = item.webPath || 'product/maintenance/CaseManage/CaseDoingBox/StardCaseDoingBoxView|isDelay=1';
window.share.event.emit('listenerMointer', {
widgetId: widgetID,
label,
url: webPath,
});
if (window?.share?.event?._events?.listenerMointer) {
window.share.event.emit('listenerMointer', {
widgetId: widgetID,
label,
url: webPath,
});
} else {
handlerUnknowDetail(message);
}
}
confirmRead(false, [message.id]);
};
......
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