mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 22:41:06 +08:00
fix: 用户管理】创建用户,不填手机号码,无法添加用户,报错:手机号码格式错误 #4459
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user