feat(event): 新增事件增加对于**empty**系统默认事件的新增阻止和topic校验

master
钟良源 3 months ago
parent 225776d99a
commit 8fe3cff6f8

@ -171,6 +171,9 @@ const EventSelect: React.FC<EventSelectProps> = ({ nodeData, eventList, type, on
if (!value) { if (!value) {
return cb('请填写事件标识'); return cb('请填写事件标识');
} }
if (value.includes('**empty**')) {
return cb('非法事件标识,请重新输入');
}
return cb(); return cb();
} }

@ -94,6 +94,9 @@ const HandleModal = ({ visible, onChangeVisible, onRefresh }) => {
if (!value) { if (!value) {
return cb('请填写事件标识'); return cb('请填写事件标识');
} }
if (value.includes('**empty**')) {
return cb('非法事件标识,请重新输入');
}
return cb(); return cb();
} }

Loading…
Cancel
Save