mac系统谷歌浏览器企业微信第三方登录成功后没有弹出绑定手机弹窗

pull/7021/head
JEECG 2024-07-19 11:42:18 +08:00
parent 7dcf8f9b5a
commit 5898656227
1 changed files with 9 additions and 4 deletions

View File

@ -38,7 +38,7 @@ export function useThirdLogin() {
//
function onThirdLogin(source) {
let url = `${glob.uploadUrl}/sys/thirdLogin/render/${source}`;
window.open(
const openWin = window.open(
url,
`login ${source}`,
'height=500, width=500, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no'
@ -68,10 +68,15 @@ export function useThirdLogin() {
} else {
createMessage.warning('不识别的信息传递');
}
//update-begin---author:wangshuai---date:2024-02-20---for:QQYUN-8156---
window.removeEventListener('message', unref(receiveMessage),false);
//update-end---author:wangshuai---date:2024-02-20---for:QQYUN-8156---
// update-begin--author:liaozhiyang---date:20240717---forTV360X-1827mac
if (openWin?.closed) {
window.removeEventListener('message', receiveMessage, false);
}
// update-end--author:liaozhiyang---date:20240717---forTV360X-1827mac
};
// update-begin--author:liaozhiyang---date:20240717---forTV360X-1827mac
window.removeEventListener('message', receiveMessage, false);
// update-end--author:liaozhiyang---date:20240717---forTV360X-1827mac
window.addEventListener('message', receiveMessage, false);
}
// token