fix: 修复验证码获取失败时禁用状态未重置的问题
在获取验证码失败时,确保按钮的禁用状态被正确重置。同时优化扫码按钮的文本显示逻辑,根据表单状态显示不同文本
This commit is contained in:
parent
25905fdc83
commit
58f7b26cbe
|
|
@ -45,7 +45,7 @@
|
|||
class="scan-icon"
|
||||
alt=""
|
||||
/>
|
||||
<p>扫码识别</p>
|
||||
<p>{{ form.code ? "重新扫码" : "扫码识别" }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -187,8 +187,11 @@ function getCode() {
|
|||
timeWait(codeTime.value);
|
||||
} else {
|
||||
showToast(res.msg);
|
||||
disabled.value = false;
|
||||
}
|
||||
}).catch(() => {
|
||||
showToast("获取验证码失败,请刷新页面重试");
|
||||
}).finally(() => {
|
||||
disabled.value = false;
|
||||
});
|
||||
}
|
||||
function getNumber() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue