人员届

This commit is contained in:
yj 2024-12-16 14:09:25 +08:00
parent 2501267340
commit d0387662a6
1 changed files with 1 additions and 0 deletions

View File

@ -415,6 +415,7 @@ const User: React.FC = () => {
<Input
placeholder="请输入届"
value={addUserFrom.year}
maxLength={4}
onChange={(e) => {
const regex = /^[0-9]*$/;
if (regex.test(e.target.value)) {