pujiaming пре 2 година
родитељ
комит
f9f391e320
1 измењених фајлова са 3 додато и 0 уклоњено
  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