修改问题

This commit is contained in:
liuyuan
2025-07-01 16:37:29 +08:00
parent 93d1834feb
commit 3254d33cd0
3 changed files with 4 additions and 4 deletions

View File

@@ -107,7 +107,7 @@
// 返回true表示校验通过返回false表示不通过
// 过滤第一层先判断输入为不为空因为required: false不是必填项所以为空应该返回true
if (value) {
return this.$u.test.mobile(value);
return /^\d{5,15}$/.test(value);
} else {
return true
}