From bf58ce60673ca2250a136ab29c58828c941d7058 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 13 Aug 2023 13:05:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=B9=E7=AA=97=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=90=AF=E7=94=A8=E7=A6=81=E7=94=A8=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98(I7L0WA)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index e598f93f7..0d6f69c03 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -992,12 +992,12 @@ var table = { }, // 禁用按钮 disable: function() { - var doc = window.top == window.parent ? window.document : window.parent.document; + var doc = window.top == window.parent ? top.window.document : window.parent.document; $("a[class*=layui-layer-btn]", doc).addClass("layer-disabled"); }, // 启用按钮 enable: function() { - var doc = window.top == window.parent ? window.document : window.parent.document; + var doc = window.top == window.parent ? top.window.document : window.parent.document; $("a[class*=layui-layer-btn]", doc).removeClass("layer-disabled"); }, // 打开遮罩层