mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix:login
This commit is contained in:
parent
e6e68a6036
commit
8d1351a8a3
@ -92,10 +92,11 @@
|
||||
},
|
||||
body: JSON.stringify({ token: tokenInput.value })
|
||||
});
|
||||
let retCode = response.json().code;
|
||||
let retCredential = response.json().data.JSON;
|
||||
let responseJson = response.json();
|
||||
let retCode = responseJson.json().code;
|
||||
if (retCode === 0) {
|
||||
//登录成功
|
||||
let retCredential = responseJson.data.Credential;
|
||||
localStorage.setItem('auth', retCredential);
|
||||
window.location.href = './config.html';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user