From ad7c851fdc38d32652b72373a936d8566b78d78b Mon Sep 17 00:00:00 2001 From: Xwen <929716663@qq.com> Date: Tue, 9 Jan 2024 23:26:18 +0800 Subject: [PATCH] =?UTF-8?q?postMessage=E4=BC=A0=E5=8F=82=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Bbs.Vue3/src/views/Auth/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Yi.Bbs.Vue3/src/views/Auth/index.vue b/Yi.Bbs.Vue3/src/views/Auth/index.vue index 06d42aa7..262df51c 100644 --- a/Yi.Bbs.Vue3/src/views/Auth/index.vue +++ b/Yi.Bbs.Vue3/src/views/Auth/index.vue @@ -32,14 +32,14 @@ watch( break; } if (type.value === "0") { - const res = await authOtherLogin({ code: val }, scheme.value); - authData.value = res; + const { data } = await authOtherLogin({ code: val }, scheme.value); + authData.value = data; } else if (type.value === "1") { - const res = await authOtherBind({ code: val }, scheme.value); - authData.value = res; + const { data } = await authOtherBind({ code: val }, scheme.value); + authData.value = data; } window.opener.postMessage({ - authData: authData.value, + authData: JSON.stringify(authData.value), type: scheme.value, }); message.value = "授权成功";