fix(login): clear last interval when calling checkQrCodeLogin (#2094)

Fixed #2093
This commit is contained in:
Siykt 2023-07-24 13:01:49 +08:00 committed by GitHub
parent dd6d4bf1c6
commit 4ec550dc46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -261,6 +261,8 @@ export default {
});
},
checkQrCodeLogin() {
//
clearInterval(this.qrCodeCheckInterval);
this.qrCodeCheckInterval = setInterval(() => {
if (this.qrCodeKey === '') return;
loginQrCodeCheck(this.qrCodeKey).then(result => {