优化发送任务的逻辑
This commit is contained in:
parent
3193ef0948
commit
145c01f844
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue