From d5490d5e71085cc954684f967f509e9a4376215f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Mon, 27 Sep 2021 10:28:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A0=E5=AF=86=E5=85=AC?= =?UTF-8?q?=E5=91=8A=E7=94=B5=E8=AF=9D=E9=AA=8C=E8=AF=81=E7=9A=84var?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/military/notice/noticeDetail/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/military/notice/noticeDetail/index.jsx b/src/military/notice/noticeDetail/index.jsx index b2c2c1cd..eea007f7 100644 --- a/src/military/notice/noticeDetail/index.jsx +++ b/src/military/notice/noticeDetail/index.jsx @@ -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 {