Merge branch 'dev' of https://git.zdool.com/xs/dhjk into dev
This commit is contained in:
commit
913500e700
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue