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: "",
code: "",
});
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`;
window.addEventListener("message", loginListener);
});
// 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`;
// window.addEventListener("message", loginListener);
// });
//
onBeforeUnmount(() => {
window.removeEventListener("message", loginListener);
});
// onBeforeUnmount(() => {
// window.removeEventListener("message", loginListener);
// });
const loginListener = () => {
// console.log('message', event)