袁磊 8 months ago
parent
commit
8b6c9a0d58
  1. 5
      pages/user/login.vue

5
pages/user/login.vue

@ -73,7 +73,7 @@
// },
onUnload() {
if(this.verifyTimer) {
clearTimeout(this.verifyTimer);
clearInterval(this.verifyTimer);
this.verifyTimer = null;
this.verifyTime = 0;
}
@ -112,7 +112,7 @@
}, 1000)
this.diyApiGet('/captchaSms', {phone: this.userName}).catch(error => {
if(this.verifyTimer) {
clearTimeout(this.verifyTimer);
clearInterval(this.verifyTimer);
this.verifyTimer = null;
this.verifyTime = 0;
}
@ -154,6 +154,7 @@
}).then(() => {
this.loginSuccess()
}).catch(() => {
this.closeLoading()
})
},
loginSuccess() {

Loading…
Cancel
Save