feat:重复绑定根据状态码关闭窗口

This commit is contained in:
Xwen
2024-01-10 22:01:23 +08:00
parent 2c8d579668
commit ce667a9f9e
3 changed files with 24 additions and 9 deletions

View File

@@ -131,10 +131,7 @@ const handleGiteeLogin = () => {
};
window.addEventListener("message", async (e) => {
console.log(e, "我是账号设置页");
const { authData, type } = e.data;
if (e.data) {
console.log(authData, type, "2333");
await checkList();
window.close();
}