mirror of https://gitee.com/y_project/RuoYi.git
修复新窗口打开页面关闭弹窗报错
parent
af7339f3b0
commit
ee9ff26594
|
@ -351,8 +351,10 @@ function calSumWidth(elements) {
|
||||||
function activeWindow() {
|
function activeWindow() {
|
||||||
var topWindow = $(window.parent.document);
|
var topWindow = $(window.parent.document);
|
||||||
var currentId = $('.page-tabs-content', topWindow).find('.active').attr('data-id');
|
var currentId = $('.page-tabs-content', topWindow).find('.active').attr('data-id');
|
||||||
var activeWindow = $('.RuoYi_iframe[data-id="' + currentId + '"]', topWindow)[0].contentWindow;
|
if (!currentId) {
|
||||||
return activeWindow;
|
return window.parent;
|
||||||
|
}
|
||||||
|
return $('.RuoYi_iframe[data-id="' + currentId + '"]', topWindow)[0].contentWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 密码规则范围验证 */
|
/** 密码规则范围验证 */
|
||||||
|
|
Loading…
Reference in New Issue