diff --git a/src/components/FlowEditor/nodeEditors/components/EventSelect.tsx b/src/components/FlowEditor/nodeEditors/components/EventSelect.tsx index fd981af..1c3a1f2 100644 --- a/src/components/FlowEditor/nodeEditors/components/EventSelect.tsx +++ b/src/components/FlowEditor/nodeEditors/components/EventSelect.tsx @@ -171,6 +171,9 @@ const EventSelect: React.FC = ({ nodeData, eventList, type, on if (!value) { return cb('请填写事件标识'); } + if (value.includes('**empty**')) { + return cb('非法事件标识,请重新输入'); + } return cb(); } diff --git a/src/pages/orchestration/event/index.tsx b/src/pages/orchestration/event/index.tsx index ce60ac5..879e468 100644 --- a/src/pages/orchestration/event/index.tsx +++ b/src/pages/orchestration/event/index.tsx @@ -94,6 +94,9 @@ const HandleModal = ({ visible, onChangeVisible, onRefresh }) => { if (!value) { return cb('请填写事件标识'); } + if (value.includes('**empty**')) { + return cb('非法事件标识,请重新输入'); + } return cb(); } @@ -135,12 +138,12 @@ const EventContainer = () => { // 根据搜索值过滤事件数据 const filteredEventData = useMemo(() => { if (!searchValue) return eventData; - + return eventData.filter(item => { const name = item.name || ''; const topic = item.topic || ''; const desc = item.description || ''; - + const searchLower = searchValue.toLowerCase(); return ( name.toLowerCase().includes(searchLower) ||