去掉账号只能输入数字

This commit is contained in:
yj 2024-09-10 14:09:36 +08:00
parent ac689b9548
commit 8d9a018c19
1 changed files with 4 additions and 7 deletions

View File

@ -273,13 +273,10 @@ const User: React.FC = () => {
showCount={true}
value={addUserFrom.Account}
onChange={(e) => {
const regex = /^[0-9]*$/;
if (regex.test(e.target.value)) {
setAddUserFrom({
...addUserFrom,
Account: e.target.value,
});
}
}}
/>
</div>