pujiaming 2 anni fa
parent
commit
f9f391e320
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/view/p_views/login/index.vue

+ 3 - 0
src/view/p_views/login/index.vue

@@ -169,6 +169,9 @@ const resetForm = (formEl: FormInstance | undefined) => {
 }
 
 const getCaptcha = async() => {
+    if(loginForm.account.length !== 11){
+        return Message.error('请输入有效手机号!')
+    }
     await getCaptchaHttp({mobile: loginForm.account}).then((res) => {
         console.log(res)
         can_send.value = false