This commit is contained in:
liuye
2022-08-19 10:24:51 +08:00
parent a80efb09c0
commit 329f7562db
2 changed files with 6 additions and 2 deletions

View File

@@ -136,7 +136,9 @@ export default {
}
var controlPhone = (rule, value, callback) => {
if (value) {
if (!value) {
callback()
} else {
const reg = /^[0-9]{3,11}$/
if (reg.test(value)) {
callback()