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

View File

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