diff --git a/src/App.tsx b/src/App.tsx
index dd20f2b..5e3ee81 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -46,9 +46,13 @@ function AuthGate() {
return ;
}
- // 隐藏后端管理页:仅通过 /ele/import 直接访问,主导航不出现
- if (typeof window !== 'undefined' && window.location.pathname === '/ele/import') {
- return ;
+ // 隐藏后端管理页:通过 /ele/import 或 #/ele/import 直接访问,主导航不出现
+ if (typeof window !== 'undefined') {
+ const path = window.location.pathname;
+ const hash = window.location.hash;
+ if (path === '/ele/import' || hash === '#/ele/import' || hash === '#ele/import') {
+ return ;
+ }
}
return ;