perf:优化第三方登录传参
This commit is contained in:
@@ -321,8 +321,8 @@ const handleGiteeLogin = () => {
|
|||||||
|
|
||||||
window.addEventListener("message", async (e) => {
|
window.addEventListener("message", async (e) => {
|
||||||
const { authData, type } = e.data;
|
const { authData, type } = e.data;
|
||||||
await loginSuccess({ data: { token: authData } });
|
if (authData) {
|
||||||
if (e.data) {
|
await loginSuccess({ data: { token: authData } });
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user