mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-09 10:56:50 +08:00
fix(login):修复获取短信验证码逻辑- 将 sendCode = false 的位置从方法开头移动到发送验证码成功后- 确保只有在验证码成功发送后才禁用发送按钮
This commit is contained in:
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user