From 20a4c3f0ccc38c37deca3f8a675ee3b59523d22b Mon Sep 17 00:00:00 2001 From: guoyuepeng <770272267@qq.com> Date: Tue, 2 Jul 2024 11:19:43 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=89=8B=E6=9C=BA=E5=8C=B9=E9=85=8D=E6=AD=A3?= =?UTF-8?q?=E5=88=99=E4=BF=AE=E6=94=B9,=E5=8F=AF=E4=BB=A5=E6=95=B0?= =?UTF-8?q?=E6=8D=AE17(0-9)=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/PersonManager/user/components/add.vue | 2 +- src/views/PersonManager/user/components/edit.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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' }