From 151ff96a25cfa415fa8981c0b6d5bd92ba449273 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 9 Nov 2020 17:01:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=89=8B=E6=9C=BA=E5=8F=B7?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/Login.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index 2084d99..1d88dd2 100644 --- a/src/views/login/Login.vue +++ b/src/views/login/Login.vue @@ -224,12 +224,13 @@ export default defineComponent({ function sublogin(){ console.log(11) + // else if(!(/^1[3-9]\d{9}$/.test(phone.value))){ + // message.error(lan.$t('shoujihaoyouwu')); + // return + // } if(phone.value==''){ message.error(lan.$t('shoujihaoweikong')) return - }else if(!(/^1[3-9]\d{9}$/.test(phone.value))){ - message.error(lan.$t('shoujihaoyouwu')); - return } else if(code.value==""){ // console.log(phone.value) console.log((/^1[3-9]\d{9}$/.test(phone.value)))