From 027b8323880950bc84cf1b6668033fa45e6fa436 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Tue, 25 Mar 2025 13:13:35 +0800 Subject: [PATCH] YT-2216 --- src/views/login/components/LoginForm.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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}})