forked from github/dataease
fix: 用户管理】创建用户,不填手机号码,无法添加用户,报错:手机号码格式错误 #4459
This commit is contained in:
parent
c66e2bde39
commit
86fb1e8ca0
@ -413,6 +413,10 @@ export default {
|
||||
}
|
||||
},
|
||||
phoneRegex(rule, value, callback) {
|
||||
if (!value || !`${value}`.trim()) {
|
||||
callback()
|
||||
return
|
||||
}
|
||||
const regep = new RegExp(/^1[3-9]\d{9}$/)
|
||||
|
||||
if (!regep.test(value)) {
|
||||
|
Loading…
Reference in New Issue
Block a user