Skip to content

Commit

Permalink
fix(login): clear last interval when calling checkQrCodeLogin (#2094)
Browse files Browse the repository at this point in the history
Fixed #2093
  • Loading branch information
Siykt authored Jul 24, 2023
1 parent dd6d4bf commit 4ec550d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/loginAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ export default {
});
},
checkQrCodeLogin() {
// 清除二维码检测
clearInterval(this.qrCodeCheckInterval);
this.qrCodeCheckInterval = setInterval(() => {
if (this.qrCodeKey === '') return;
loginQrCodeCheck(this.qrCodeKey).then(result => {
Expand Down

0 comments on commit 4ec550d

Please sign in to comment.