Merge branch 'dev' of https://git.zdool.com/xs/dhjk into dev

This commit is contained in:
陈鹏鹏 2023-09-27 15:39:51 +08:00
commit 913500e700
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)