fix: GetQuickList
This commit is contained in:
1 parent
05051cf0cd
commit
dd70e20bda
4 files changed
+7
-4
No files matched your search
+3
-1
@@ -196,12 +196,13 @@
|
||||
return [];
|
||||
}
|
||||
async function InitPages() {
|
||||
let QuickLists = GetQQQucickLoginList(localStorage.getItem('auth'));
|
||||
let QuickLists = await GetQQQucickLoginList(localStorage.getItem('auth'));
|
||||
let QuickListSelect = document.querySelector("#quick-login-select");
|
||||
QuickLists.forEach(QuickUin => {
|
||||
let optionUinEle = document.createElement('option');
|
||||
optionUinEle.innerHTML = QuickUin;
|
||||
optionUinEle.value = QuickUin;
|
||||
QuickListSelect.appendChild(optionUinEle);
|
||||
});
|
||||
}
|
||||
document.getElementById('quick-login').addEventListener('click', function () {
|
||||
@@ -231,6 +232,7 @@
|
||||
console.log('QR Code generated!');
|
||||
});
|
||||
}
|
||||
InitPages();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in new issue
Block a user