修复新窗口打开页面关闭弹窗报错

pull/334/head
Ricky 3 years ago
parent af7339f3b0
commit ee9ff26594

@ -351,8 +351,10 @@ function calSumWidth(elements) {
function activeWindow() {
var topWindow = $(window.parent.document);
var currentId = $('.page-tabs-content', topWindow).find('.active').attr('data-id');
var activeWindow = $('.RuoYi_iframe[data-id="' + currentId + '"]', topWindow)[0].contentWindow;
return activeWindow;
if (!currentId) {
return window.parent;
}
return $('.RuoYi_iframe[data-id="' + currentId + '"]', topWindow)[0].contentWindow;
}
/** 密码规则范围验证 */

Loading…
Cancel
Save