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

View File

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