mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
fix(login): clear last interval when calling checkQrCodeLogin (#2094)
Fixed #2093
This commit is contained in:
parent
dd6d4bf1c6
commit
4ec550dc46
1 changed files with 2 additions and 0 deletions
|
|
@ -261,6 +261,8 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
checkQrCodeLogin() {
|
checkQrCodeLogin() {
|
||||||
|
// 清除二维码检测
|
||||||
|
clearInterval(this.qrCodeCheckInterval);
|
||||||
this.qrCodeCheckInterval = setInterval(() => {
|
this.qrCodeCheckInterval = setInterval(() => {
|
||||||
if (this.qrCodeKey === '') return;
|
if (this.qrCodeKey === '') return;
|
||||||
loginQrCodeCheck(this.qrCodeKey).then(result => {
|
loginQrCodeCheck(this.qrCodeKey).then(result => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue