From 2b6d363abaa64f44de5cf44bf67eb73e5e112281 Mon Sep 17 00:00:00 2001 From: hehh Date: Fri, 12 Dec 2025 12:06:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(config):=20=E9=87=8D=E6=9E=84=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E9=85=8D=E7=BD=AE=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将SiteConfig封装为IIFE避免全局污染 - 移除about.html中的内联SiteConfig定义 - 统一通过js/config.js管理所有配置项 - 修复统计脚本加载时对SiteConfig的依赖问题 - 确保配置在模块化和浏览器环境中正常导出 - 优化不蒜子统计ID获取方式提升容错性 --- about.html | 55 +-------- js/config.js | 318 ++++++++++++++++++++++++++------------------------- 2 files changed, 165 insertions(+), 208 deletions(-) diff --git a/about.html b/about.html index cefbe07..6f86e3b 100644 --- a/about.html +++ b/about.html @@ -109,51 +109,6 @@ - - - @@ -446,14 +401,14 @@ document.addEventListener('DOMContentLoaded', function () { // 动态加载不蒜子统计脚本 const script = document.createElement('script'); - script.src = SiteConfig.analytics.busuanzi.src; + script.src = "//cdn.busuanzi.cc/busuanzi/3.6.9/busuanzi.abbr.min.js"; script.async = true; document.head.appendChild(script); });