商城bug修复

This commit is contained in:
2025-08-27 17:00:20 +08:00
parent 5847393c50
commit 9535622893
5 changed files with 276 additions and 69 deletions

View File

@@ -165,12 +165,12 @@ const handleLogin = async () => {
const valid = await loginFormRef.value.validate()
if (!valid) return
// 验证验证码
const captchaValid = await captchaRef.value.verifyCaptcha(loginForm.captcha)
if (!captchaValid) {
loginForm.captcha = ''
return
}
// // 验证验证码
// const captchaValid = await captchaRef.value.verifyCaptcha(loginForm.captcha)
// if (!captchaValid) {
// loginForm.captcha = ''
// return
// }
// 获取验证码信息
const captchaInfo = captchaRef.value.getCaptchaInfo()