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