Skip to content

Commit 5a30df5

Browse files
author
piexlMax(奇淼
committed
fix(登录): 修正验证码长度计算逻辑
1 parent 7d3e7b5 commit 5a30df5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web/src/view/login/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@
179179
// 获取验证码
180180
const loginVerify = async () => {
181181
const ele = await captcha()
182-
const lengthFromServer = Number(ele.data?.captchaLength) || 0
183-
captchaRequiredLength.value = Math.max(6, lengthFromServer)
182+
captchaRequiredLength.value = Number(ele.data?.captchaLength) || 0
184183
picPath.value = ele.data?.picPath
185184
loginFormData.captchaId = ele.data?.captchaId
186185
loginFormData.openCaptcha = ele.data?.openCaptcha

0 commit comments

Comments
 (0)