diff --git a/apps/ui/src/features/AppLayout.tsx b/apps/ui/src/features/AppLayout.tsx index 72339ca..967ec4a 100644 --- a/apps/ui/src/features/AppLayout.tsx +++ b/apps/ui/src/features/AppLayout.tsx @@ -29,62 +29,122 @@ export const AppLayout = ({ onTabChange, onLogout, children, -}: AppLayoutProps) => ( -
- -
-
-
-

- {activeLabel} -

-

- 集中管理渠道、模型、令牌与使用情况。 -

-
+}: AppLayoutProps) => { + const closeMobileNav = () => { + const toggle = document.querySelector("#app-nav-toggle"); + if (toggle) { + toggle.checked = false; + } + }; + + return ( +
+ +
- + +
+ + api-workers + + {activeLabel} +
+
+
+ {token ? "已登录" : "未登录"}
-
- {notice && ( -
- {notice} + +
-
-); + + +
+
+
+

+ {activeLabel} +

+

+ 集中管理渠道、模型、令牌与使用情况。 +

+
+ +
+ {notice && ( +
+ {notice} +
+ )} + {children} +
+