fix(登录): 修正验证码长度计算逻辑

This commit is contained in:
piexlMax(奇淼
2025-10-24 15:50:53 +08:00
parent 7d3e7b5b7a
commit 5a30df558c

View File

@@ -179,8 +179,7 @@
// 获取验证码
const loginVerify = async () => {
const ele = await captcha()
const lengthFromServer = Number(ele.data?.captchaLength) || 0
captchaRequiredLength.value = Math.max(6, lengthFromServer)
captchaRequiredLength.value = Number(ele.data?.captchaLength) || 0
picPath.value = ele.data?.picPath
loginFormData.captchaId = ele.data?.captchaId
loginFormData.openCaptcha = ele.data?.openCaptcha