From ea914c14d7f26db6cb90148054e92dd1e78b49fb Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Thu, 15 Jan 2026 23:19:37 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E6=B7=BB=E5=8A=A0=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E7=9B=AE=E5=BD=95=E8=B0=83=E8=AF=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- argontheme.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/argontheme.js b/argontheme.js index 5cd66d8..c484939 100644 --- a/argontheme.js +++ b/argontheme.js @@ -2514,14 +2514,17 @@ $(document).on("click" , "#blog_categories .tag" , function(){ window.mobileCatalogInitialized = false; function initMobileCatalog() { + console.log('[Mobile Catalog] initMobileCatalog called, initialized:', window.mobileCatalogInitialized); if (window.mobileCatalogInitialized) return; var $mobileContainer = $("#leftbar_mobile_catalog"); var $postContent = $("#post_content"); + console.log('[Mobile Catalog] Container found:', $mobileContainer.length, 'PostContent found:', $postContent.length); if ($mobileContainer.length === 0) return; if ($postContent.length === 0) return; // 直接生成目录,不依赖 headIndex 插件 var $headers = $postContent.find('h1, h2, h3, h4, h5, h6'); + console.log('[Mobile Catalog] Headers found:', $headers.length); if ($headers.length === 0) { $mobileContainer.html('