From 4ec550dc46fc6a4d1bf214c4d112ea2f6763a5a4 Mon Sep 17 00:00:00 2001 From: Siykt <44022526+Siykt@users.noreply.github.com> Date: Mon, 24 Jul 2023 13:01:49 +0800 Subject: [PATCH] fix(login): clear last interval when calling checkQrCodeLogin (#2094) Fixed #2093 --- src/views/loginAccount.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/loginAccount.vue b/src/views/loginAccount.vue index 922ae27be4..524bd63dcc 100644 --- a/src/views/loginAccount.vue +++ b/src/views/loginAccount.vue @@ -261,6 +261,8 @@ export default { }); }, checkQrCodeLogin() { + // 清除二维码检测 + clearInterval(this.qrCodeCheckInterval); this.qrCodeCheckInterval = setInterval(() => { if (this.qrCodeKey === '') return; loginQrCodeCheck(this.qrCodeKey).then(result => {