diff --git a/src/views/login/components/LoginForm.vue b/src/views/login/components/LoginForm.vue index ace7494a6..01af4c3d8 100644 --- a/src/views/login/components/LoginForm.vue +++ b/src/views/login/components/LoginForm.vue @@ -71,7 +71,7 @@ - @@ -224,16 +224,19 @@ import { getSwitchByCode } from '@/api/wms/switch' name: 'ForgetPassword', }) }; + const capctchaCheck = ref(false) // 滑块校验成功 const capctchaCheckSuccess = async ({captchaVerification})=>{ console.log('capctchaCheckSuccess',captchaVerification) if(captchaVerification){ + capctchaCheck.value = true loginData.loginForm.code = captchaVerification await handleLogin() } } // 滑块校验失败 const capctchaCheckError = ()=>{ + capctchaCheck.value = false console.log('capctchaCheckError') } @@ -339,6 +342,7 @@ import { getSwitchByCode } from '@/api/wms/switch' wsCache.set('ShowPackingNumber', res == 'TRUE' ? true : false) }) }catch (e){ + capctchaCheck.value = false if(e.code === 1002000008){ setTimeout(function (){ router.push({path:"/updatePasswordNewTips",query:{username:loginData.loginForm.username}})