Commit c87897f0 by guomingpang

fix:提交登录申请文本框输入限制

parent 830a51f3
......@@ -40,7 +40,11 @@ const WechatAudit = function () {
value={realName}
maxLength={6}
onChange={(e) => {
setRealName(e.target.value);
let value = e.target.value.replace(/[^\a-\z\A-\Z0-9\u4E00-\u9FA5]/g,'')
if(value.length>6){
return
}
setRealName(value);
}}
/>
</div>
......
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