Merge pull request 'master' (#190) from master into test

Reviewed-on: http://git.feashow.cn/feashow/SmartOpsWeb/pulls/190
This commit is contained in:
2024-11-25 14:09:44 +00:00

View File

@@ -25,7 +25,8 @@ const dialogType = ref("");
// 手机号验证
const checkPhone = (rule, value, callback) => {
const phoneReg = /^1[3|4|5|6|7|8][0-9]{9}$/
// const phoneReg = /^1[3|4|5|6|7|8][0-9]{9}$/
const phoneReg = /^\d{11}$/
setTimeout(() => {
if (!Number.isInteger(+value)) {
callback(new Error('请输入数字值'))
@@ -33,7 +34,7 @@ const checkPhone = (rule, value, callback) => {
if (phoneReg.test(value)) {
callback()
} else {
callback(new Error('手机号码格式不正确'))
callback(new Error('手机号码长度不足11位如果是座机请添加区号'))
}
}
}, 100)