check if can select and cancel rum errors
This commit is contained in:
parent
19be866323
commit
18d46f3ffc
@ -69,7 +69,8 @@ export default {
|
|||||||
if (this.remainingTime > 0) {
|
if (this.remainingTime > 0) {
|
||||||
this.remainingTime--;
|
this.remainingTime--;
|
||||||
} else {
|
} else {
|
||||||
this.select(this.cards[0]);
|
if (this.select) this.select(this.cards[0]);
|
||||||
|
else if (this.cancel) this.cancel();
|
||||||
window.clearInterval(this.intervalID);
|
window.clearInterval(this.intervalID);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user