From a058972002aa6c22fea4b07a89bccc1c415439e1 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Fri, 13 Sep 2024 16:48:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=AE=A1=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ah-jjzhgd-web/src/views/system/user/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ah-jjzhgd-web/src/views/system/user/index.vue b/ah-jjzhgd-web/src/views/system/user/index.vue index dac8419..ac4154b 100644 --- a/ah-jjzhgd-web/src/views/system/user/index.vue +++ b/ah-jjzhgd-web/src/views/system/user/index.vue @@ -328,7 +328,11 @@ export default { } }, validatePhone(rule, value, callback) { - if (validPhone(value)) { + let newValue = value; + if(value.indexOf('*') > -1){ + newValue = this.temp.newPhone; + } + if (validPhone(newValue)) { callback() } else { callback(new Error('手机号格式不正确'))