From 807a5819f28939267e2a60b434efdc0b3a056bd9 Mon Sep 17 00:00:00 2001 From: Angelo Date: Tue, 26 Apr 2022 16:36:42 +0800 Subject: [PATCH] fix(mobile regex): # --- .../components/header-user/userinfo.vue | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/web/src/layout/header-aside/components/header-user/userinfo.vue b/web/src/layout/header-aside/components/header-user/userinfo.vue index d8d3fd2..c327ffb 100644 --- a/web/src/layout/header-aside/components/header-user/userinfo.vue +++ b/web/src/layout/header-aside/components/header-user/userinfo.vue @@ -28,10 +28,21 @@ :action="action" :headers="headers" :limit="1" - :disabled="fileList.length===1" - :on-success="handleAvatarSuccess"> - - + :disabled="fileList.length === 1" + :on-success="handleAvatarSuccess" + > + @@ -159,9 +170,7 @@ export default { }, userInforules: { name: [{ required: true, message: '请输入昵称', trigger: 'blur' }], - mobile: [ - { pattern: /^1[3|4|5|7|8]\d{9}$/, message: '请输入正确手机号' } - ] + mobile: [{ pattern: /^1[3-9]\d{9}$/, message: '请输入正确手机号' }] }, userPasswordInfo: { oldPassword: '',