From 2846561d8c8d02120414890f53caf7a234d22bb9 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Sun, 28 Dec 2025 22:01:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E8=8F=9C=E5=8D=95=E4=BC=98=E5=8C=96UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/addon/theme_configurator/template/admin/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/addon/theme_configurator/template/admin/index.html b/plugins/addon/theme_configurator/template/admin/index.html index 3479ad6..820ee11 100644 --- a/plugins/addon/theme_configurator/template/admin/index.html +++ b/plugins/addon/theme_configurator/template/admin/index.html @@ -675,7 +675,7 @@

导航 ${index + 1}: ${nav.name || '(未命名)'}

- +
@@ -774,9 +774,12 @@ window.toggleHeaderNavChildren = function (index) { const container = document.getElementById(`header-nav-children-${index}`); - if (container) { + const toggleBtn = document.getElementById(`toggle-nav-${index}`); + + if (container && toggleBtn) { const isHidden = container.style.display === 'none'; container.style.display = isHidden ? 'block' : 'none'; + toggleBtn.textContent = isHidden ? '收起子菜单' : '展开子菜单'; } };