fix(login):修复获取短信验证码逻辑- 将 sendCode = false 的位置从方法开头移动到发送验证码成功后- 确保只有在验证码成功发送后才禁用发送按钮

This commit is contained in:
陈昱达
2025-08-13 09:13:10 +08:00
parent 1e326cb497
commit 5bce9e4670

View File

@@ -248,12 +248,11 @@ export default {
return this.minute
},
sendPhoneCode() {
this.sendCode = false
sendPhoneCodeLogin({
userName: this.loginForm.userName
}).then(res => {
if (Number(res.code) === 0) {
this.sendCode = false
this.sendCodeText()
}
})