修改加密公告电话验证的var

This commit is contained in:
谢思 2021-09-27 10:28:47 +08:00
parent 7be60d3140
commit d5490d5e71
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ export default Form.create()(({ match, history, showNotification, form }) => {
[{ required: true, message: "请输入联系方式" },
{ max: 100, message: '不能超过100字符' },
{ validator: (rule,val,callback) =>{
var pattern = /^((\+)?86|((\+)?86)?)0?1[3458]\d{9}$/;
const pattern = /^((\+)?86|((\+)?86)?)0?1[3458]\d{9}$/;
if(pattern.test(val)){
callback();
}else {