Browse Source

YT-2216

intex_online20250327
王宇飞 2 weeks ago
parent
commit
027b832388
  1. 6
      src/views/login/components/LoginForm.vue

6
src/views/login/components/LoginForm.vue

@ -71,7 +71,7 @@
</el-col>
<el-col :span="24" style="padding-right: 10px; padding-left: 10px">
<el-form-item>
<XButton :loading="loginLoading" :title="t('login.login')" class="w-[100%]" type="primary"
<XButton :disabled="needCode&&!capctchaCheck" :loading="loginLoading" :title="t('login.login')" class="w-[100%]" type="primary"
@click="handleLogin()" />
</el-form-item>
@ -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}})

Loading…
Cancel
Save