办公电话格式校验
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -96,7 +96,7 @@ export default { | ... | @@ -96,7 +96,7 @@ export default { |
96 | ], | 96 | ], |
97 | telephone: [ | 97 | telephone: [ |
98 | { | 98 | { |
99 | pattern: /^((d{3,4})|d{3,4}-|s)?d{7,14}$/, | 99 | pattern: /\d{3}-\d{8}|\d{4}-\d{7}/, |
100 | message: "办公电话格式有误", | 100 | message: "办公电话格式有误", |
101 | trigger: "blur", | 101 | trigger: "blur", |
102 | }, | 102 | }, | ... | ... |
-
Please register or sign in to post a comment