diff --git a/src/views/PersonManager/user/components/add.vue b/src/views/PersonManager/user/components/add.vue index b63077f..f63f04a 100644 --- a/src/views/PersonManager/user/components/add.vue +++ b/src/views/PersonManager/user/components/add.vue @@ -589,7 +589,7 @@ export default { USERNAME: [ { required: true, message: '用户名不能为空', trigger: 'blur' }, { - pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[0-9])\d{8}$/, + pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0-9]|18[0-9]|19[0-9])\d{8}$/, message: '用户名为手机号,请正确输入' }, { validator: hasName, trigger: 'blur' } diff --git a/src/views/PersonManager/user/components/edit.vue b/src/views/PersonManager/user/components/edit.vue index 991b32a..5cd63b7 100644 --- a/src/views/PersonManager/user/components/edit.vue +++ b/src/views/PersonManager/user/components/edit.vue @@ -595,7 +595,7 @@ export default { USERNAME: [ { required: true, message: '用户名不能为空', trigger: 'blur' }, { - pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[0-9])\d{8}$/, + pattern: /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0-9]|18[0-9]|19[0-9])\d{8}$/, message: '用户名为手机号,请正确输入' }, { validator: hasName, trigger: 'blur' }