From 4a320f62f2b521f953812504c07077e2b1b8690f Mon Sep 17 00:00:00 2001 From: zly Date: Wed, 8 Apr 2026 17:13:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(event):=20=E4=BA=8B=E4=BB=B6=E6=A0=87?= =?UTF-8?q?=E8=AF=86=E5=A2=9E=E5=8A=A0=E6=AD=A3=E5=88=99=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/orchestration/event/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;