优化验证码发送

pull/495/head
Karson 2025-05-06 20:46:15 +08:00
parent 5e1970b0fb
commit 7a6a65c190
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
si[type] = setInterval(function () {
seconds--;
if (seconds <= 0) {
clearInterval(si);
clearInterval(si[type]);
$(btn).removeClass("disabled").text("发送验证码");
} else {
$(btn).addClass("disabled").text(seconds + "秒后可再次发送");