mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: GetQuickList
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -109,6 +109,7 @@
|
||||
if (QQLoginResponse.status == 200) {
|
||||
let QQLoginResponseJson = await QQLoginResponse.json();
|
||||
if (QQLoginResponseJson.code == 0) {
|
||||
alert(QQLoginResponseJson.data.isLogin.toString());
|
||||
if (QQLoginResponseJson.data.isLogin) {
|
||||
window.location.href = './config.html';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user