diff --git a/src/pages/orchestration/event/index.tsx b/src/pages/orchestration/event/index.tsx index 0aa7db1..f2b3705 100644 --- a/src/pages/orchestration/event/index.tsx +++ b/src/pages/orchestration/event/index.tsx @@ -97,6 +97,9 @@ const HandleModal = ({ visible, onChangeVisible, onRefresh }) => { if (value.includes('**empty**')) { return cb('非法事件标识,请重新输入'); } + if (!/^[A-Za-z0-9_]+$/.test(value)) { + return cb('事件标识只能输入英文字母、数字和下划线'); + } return cb(); } @@ -323,4 +326,4 @@ const EventContainer = () => { ); }; -export default EventContainer; \ No newline at end of file +export default EventContainer;