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>
<el-col :span="24" style="padding-right: 10px; padding-left: 10px"> <el-col :span="24" style="padding-right: 10px; padding-left: 10px">
<el-form-item> <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()" /> @click="handleLogin()" />
</el-form-item> </el-form-item>
@ -224,16 +224,19 @@ import { getSwitchByCode } from '@/api/wms/switch'
name: 'ForgetPassword', name: 'ForgetPassword',
}) })
}; };
const capctchaCheck = ref(false)
// //
const capctchaCheckSuccess = async ({captchaVerification})=>{ const capctchaCheckSuccess = async ({captchaVerification})=>{
console.log('capctchaCheckSuccess',captchaVerification) console.log('capctchaCheckSuccess',captchaVerification)
if(captchaVerification){ if(captchaVerification){
capctchaCheck.value = true
loginData.loginForm.code = captchaVerification loginData.loginForm.code = captchaVerification
await handleLogin() await handleLogin()
} }
} }
// //
const capctchaCheckError = ()=>{ const capctchaCheckError = ()=>{
capctchaCheck.value = false
console.log('capctchaCheckError') console.log('capctchaCheckError')
} }
@ -339,6 +342,7 @@ import { getSwitchByCode } from '@/api/wms/switch'
wsCache.set('ShowPackingNumber', res == 'TRUE' ? true : false) wsCache.set('ShowPackingNumber', res == 'TRUE' ? true : false)
}) })
}catch (e){ }catch (e){
capctchaCheck.value = false
if(e.code === 1002000008){ if(e.code === 1002000008){
setTimeout(function (){ setTimeout(function (){
router.push({path:"/updatePasswordNewTips",query:{username:loginData.loginForm.username}}) router.push({path:"/updatePasswordNewTips",query:{username:loginData.loginForm.username}})

Loading…
Cancel
Save