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

5
pages/user/login.vue

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

Loading…
Cancel
Save