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)))