feat:测试
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user