From 1267cf98458611b4c62add4c548eadb566070f8e Mon Sep 17 00:00:00 2001 From: Xwen <929716663@qq.com> Date: Wed, 10 Jan 2024 23:14:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Bbs.Vue3/src/views/Auth/index.vue | 2 ++ Yi.Bbs.Vue3/src/views/login/index.vue | 1 + 2 files changed, 3 insertions(+) diff --git a/Yi.Bbs.Vue3/src/views/Auth/index.vue b/Yi.Bbs.Vue3/src/views/Auth/index.vue index 808ea014..a30b0835 100644 --- a/Yi.Bbs.Vue3/src/views/Auth/index.vue +++ b/Yi.Bbs.Vue3/src/views/Auth/index.vue @@ -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(); } diff --git a/Yi.Bbs.Vue3/src/views/login/index.vue b/Yi.Bbs.Vue3/src/views/login/index.vue index 59d4f057..414031ae 100644 --- a/Yi.Bbs.Vue3/src/views/login/index.vue +++ b/Yi.Bbs.Vue3/src/views/login/index.vue @@ -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();