From c6750859e669c8b767ac5cb568ee1b5036f6d57e Mon Sep 17 00:00:00 2001 From: yiqiu Date: Sun, 11 Jan 2026 12:22:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E7=BA=A7=E8=8F=9C=E5=8D=95UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../addon/theme_configurator/template/admin/index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/addon/theme_configurator/template/admin/index.html b/plugins/addon/theme_configurator/template/admin/index.html index a29b7b1..1c93c95 100644 --- a/plugins/addon/theme_configurator/template/admin/index.html +++ b/plugins/addon/theme_configurator/template/admin/index.html @@ -700,6 +700,11 @@ const container = document.getElementById('headerNavList'); if (!container) return; + // 确保navs是数组 + if (!Array.isArray(navs)) { + navs = []; + } + let html = ` @@ -1071,6 +1076,11 @@ const container = document.getElementById('footerNavList'); if (!container) return; + // 确保navs是数组 + if (!Array.isArray(navs)) { + navs = []; + } + let html = `