|
@@ -170,25 +170,31 @@ export default {
|
|
|
? JSON.parse(this.systemSet)
|
|
|
: this.systemSet;
|
|
|
const { LockMins } = obj;
|
|
|
- this.time = LockMins * 60;
|
|
|
- this.desc = LockMins * 60;
|
|
|
+ this.time = LockMins * 10;
|
|
|
+ this.desc = LockMins * 10;
|
|
|
this.timer = setInterval(() => {
|
|
|
this.time--;
|
|
|
if (this.time === 0) {
|
|
|
const result = this.arrLen;
|
|
|
const rut = this.arr;
|
|
|
result.push(rut.length);
|
|
|
- if (result.length >= 2) {
|
|
|
- if (result[result.length - 2] === result[result.length - 1]) {
|
|
|
- // 相同时 结束倒计时
|
|
|
- this.$store.dispatch("app/toggleDialog", true);
|
|
|
- this.getCheckCode();
|
|
|
- this.clearAll();
|
|
|
+ if (rut.length == 0) {
|
|
|
+ this.$store.dispatch("app/toggleDialog", true);
|
|
|
+ this.getCheckCode();
|
|
|
+ this.clearAll();
|
|
|
+ } else {
|
|
|
+ if (result.length >= 2) {
|
|
|
+ if (result[result.length - 2] === result[result.length - 1]) {
|
|
|
+ // 相同时 结束倒计时
|
|
|
+ this.$store.dispatch("app/toggleDialog", true);
|
|
|
+ this.getCheckCode();
|
|
|
+ this.clearAll();
|
|
|
+ } else {
|
|
|
+ this.time = this.desc;
|
|
|
+ }
|
|
|
} else {
|
|
|
this.time = this.desc;
|
|
|
}
|
|
|
- } else {
|
|
|
- this.time = this.desc;
|
|
|
}
|
|
|
}
|
|
|
}, 1000);
|