fix: 用户管理】创建用户,不填手机号码,无法添加用户,报错:手机号码格式错误 #4459

This commit is contained in:
dataeaseShu 2023-02-06 18:09:57 +08:00
parent c66e2bde39
commit 86fb1e8ca0

View File

@ -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)) {