// Copyright 底部文案:copyright 组件不响应式监听 settingsStore 变化, // 页面加载后用 JS 直接修改 DOM 文本补充运营电话。 (function() { function patchCopyright() { var els = document.querySelectorAll('footer span, footer a, [class*="copyright"] span, [class*="copyright"] a'); els.forEach(function(el) { var text = el.textContent || ''; if (text.indexOf('神舟管理平台') >= 0 && text.indexOf('运营电话') < 0) { el.textContent = text + ' 运营电话:16606255258'; } }); } if (document.readyState === 'complete') { setTimeout(patchCopyright, 500); } else { window.addEventListener('load', function() { setTimeout(patchCopyright, 500); }); } // MutationObserver 兜底:DOM 变化时检查 var observer = new MutationObserver(function() { setTimeout(patchCopyright, 100); }); document.addEventListener('DOMContentLoaded', function() { observer.observe(document.body, { childList: true, subtree: true }); setTimeout(patchCopyright, 1000); }); })();