{ if (event.target === event.currentTarget) onClose(); }}>
+
+
;
+}
+
export function AppShell() {
const location = useLocation();
const section = location.pathname.split('/')[1] || 'monitor';
const activeRoutePath = `/${section}`;
const { session, logout } = usePlatformSession();
+ const [helpOpen, setHelpOpen] = useState(false);
const roleLabel = { viewer: '只读', operator: '处置员', admin: '管理员' }[session.role];
useEffect(() => scheduleIdleRoutePreloads({ activePathname: activeRoutePath }), [activeRoutePath]);
@@ -52,13 +81,14 @@ export function AppShell() {