diff --git a/platform/frontend/admin.html b/platform/frontend/admin.html
index 0aca582..035de62 100644
--- a/platform/frontend/admin.html
+++ b/platform/frontend/admin.html
@@ -397,8 +397,20 @@ const app = createApp({
app.use(ElementPlus);
// 安装导航组件
-if (window.installNavigation) { window.installNavigation(app); }
+if (window.installNavigation) { window.installNavigation(app); } else if (window.NavigationComponent) { app.component("navigation-component", window.NavigationComponent); }
app.mount('#app');
+
+ // 调试代码:检查导航组件状态
+ setTimeout(() => {
+ const hasNav = !!document.querySelector('.navigation-wrapper');
+ const hasSidebar = !!document.querySelector('.navigation-wrapper .sidebar');
+ console.log('[调试] 导航wrapper:', hasNav);
+ console.log('[调试] 侧边栏:', hasSidebar);
+ if (!hasNav) {
+ console.error('[调试] 导航组件未渲染!window.NavigationComponent=', !!window.NavigationComponent);
+ console.error('[调试] app实例是否存在组件注册?', Vue && Vue.app && Vue.app._context.components['navigation-component']);
+ }
+ }, 100);