优化发送任务的逻辑

This commit is contained in:
TOP糯米 2023-04-01 23:12:28 +08:00
parent 3193ef0948
commit 145c01f844
2 changed files with 2 additions and 0 deletions

View File

@ -196,6 +196,7 @@ export default {
if (that.sec <= 0) { if (that.sec <= 0) {
that.canUse = true; that.canUse = true;
that.sec = 0; that.sec = 0;
clearInterval(that.timeTask);
} }
}, 1000); }, 1000);
}, },

View File

@ -98,6 +98,7 @@ export default {
if (that.sec <= 0) { if (that.sec <= 0) {
that.canUse = true; that.canUse = true;
that.sec = 0; that.sec = 0;
clearInterval(that.timeTask);
} }
}, 1000); }, 1000);
}, },