perf:拿到第三方token,loginSuccess更换参数

This commit is contained in:
Xwen
2024-01-10 22:55:36 +08:00
parent 41455cd47f
commit ada31888f4

View File

@@ -321,7 +321,7 @@ const handleGiteeLogin = () => {
window.addEventListener("message", async (e) => {
const { authData, type } = e.data;
await loginSuccess({ token: authData });
await loginSuccess({ data: authData });
if (e.data) {
window.close();
}