Commit 4f8c9e47 by zhaochengxiang

资产目录编号

parent 7a7c2741
......@@ -15,7 +15,7 @@ const CodeInput = ({ value = '', onChange, restrict = false, action }) => {
const onCodeChange = (e) => {
if (!restrict || (
restrict&&/^[a-zA-Z]+$/.test(e.target.value)
restrict&&(e.target.value===''||/^[a-zA-Z]+$/.test(e.target.value))
)) {
onChange?.(e.target.value);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment