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: "",
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue