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 @@
@@ -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 ? '收起子菜单' : '展开子菜单';
}
};