This commit is contained in:
闫世杰 2023-09-27 15:38:56 +08:00
parent 3f2a92cdcc
commit fed79e2e4b
1 changed files with 7 additions and 7 deletions

View File

@ -421,14 +421,14 @@ const scanLogin = reactive({
scanUrl: "", scanUrl: "",
code: "", code: "",
}); });
onMounted(() => { // onMounted(() => {
scanLogin.scanUrl = `https://login.dg-work.cn/oauth2/auth.htm?response_type=code&client_id=${scanLogin.zydd_client_id}&redirect_uri=${scanLogin.redirect_uri}&scope=get_user_info&authType=QRCODE&embedMode=true`; // scanLogin.scanUrl = `https://login.dg-work.cn/oauth2/auth.htm?response_type=code&client_id=${scanLogin.zydd_client_id}&redirect_uri=${scanLogin.redirect_uri}&scope=get_user_info&authType=QRCODE&embedMode=true`;
window.addEventListener("message", loginListener); // window.addEventListener("message", loginListener);
}); // });
// //
onBeforeUnmount(() => { // onBeforeUnmount(() => {
window.removeEventListener("message", loginListener); // window.removeEventListener("message", loginListener);
}); // });
const loginListener = () => { const loginListener = () => {
// console.log('message', event) // console.log('message', event)