feat:测试

This commit is contained in:
Xwen
2024-01-10 23:14:20 +08:00
parent 08b696fd9b
commit 1267cf9845
2 changed files with 3 additions and 0 deletions

View File

@@ -53,6 +53,8 @@ watch(
authData: JSON.stringify(authData.value),
type: scheme.value,
});
console.log(authData.value);
console.log(JSON.stringify(authData.value), "发送过来的值");
message.value = "授权成功";
closeWindow();
}

View File

@@ -321,6 +321,7 @@ const handleGiteeLogin = () => {
window.addEventListener("message", async (e) => {
const { authData, type } = e.data;
console.log(authData, "传到登录页的值");
if (authData) {
await loginSuccess({ data: authData });
window.close();