|
@ -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}}) |
|
|