Explorar o código

fix 拦截验证

pujiaming %!s(int64=2) %!d(string=hai) anos
pai
achega
f9f391e320
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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