diff --git a/static/system/component/pear/module/admin.js b/static/system/component/pear/module/admin.js index 78c8285..02a11ff 100644 --- a/static/system/component/pear/module/admin.js +++ b/static/system/component/pear/module/admin.js @@ -299,16 +299,6 @@ layui.define(['jquery', 'tools', 'element', 'yaml', 'form', 'tabPage', 'menu', ' const variableKey = "--global-primary-color"; const variableVal = localStorage.getItem("theme-color-color"); document.documentElement.style.setProperty(variableKey, variableVal); - - /* 遍历所有 iframe 更改主题色 */ - const iframes = document.querySelectorAll('iframe'); - iframes.forEach(function(iframe) { - try { - const iframeDocument = iframe.contentDocument || iframe.contentWindow.document; - // 设置 iframe 中的主题色 - iframeDocument.documentElement.style.setProperty(variableKey, variableVal); - } catch (e) {} - }); } /** diff --git a/templates/system/common/footer.html b/templates/system/common/footer.html index 5547b5c..c919125 100644 --- a/templates/system/common/footer.html +++ b/templates/system/common/footer.html @@ -1,4 +1,5 @@