diff --git a/src/client/pages/Layout/Header.tsx b/src/client/pages/Layout/Header.tsx
new file mode 100644
index 0000000..e399a9c
--- /dev/null
+++ b/src/client/pages/Layout/Header.tsx
@@ -0,0 +1,18 @@
+import { useUserInfo } from '@/store/user';
+import React from 'react';
+import { Helmet } from 'react-helmet';
+
+export const LayoutHeader: React.FC = React.memo(() => {
+ const userInfo = useUserInfo();
+ let title = 'Tianji - Insight into everything';
+ if (userInfo) {
+ title = userInfo.currentWorkspace.name + ' | ' + title;
+ }
+
+ return (
+
+ {title}
+
+ );
+});
+LayoutHeader.displayName = 'LayoutHeader';
diff --git a/src/client/routes/__root.tsx b/src/client/routes/__root.tsx
index 70ab131..6f0f9d0 100644
--- a/src/client/routes/__root.tsx
+++ b/src/client/routes/__root.tsx
@@ -1,3 +1,4 @@
+import { LayoutHeader } from '@/pages/Layout/Header';
import { createRootRouteWithContext, Outlet } from '@tanstack/react-router';
// import { TanStackRouterDevtools } from '@tanstack/router-devtools';
import { Suspense } from 'react';
@@ -12,6 +13,8 @@ export const Route = createRootRouteWithContext()({
return (
// https://github.com/TanStack/router/issues/857
+
+
{/* */}
diff --git a/src/client/routes/status/$slug.tsx b/src/client/routes/status/$slug.tsx
index 65b24b6..88dce9d 100644
--- a/src/client/routes/status/$slug.tsx
+++ b/src/client/routes/status/$slug.tsx
@@ -3,7 +3,6 @@ import { ErrorTip } from '@/components/ErrorTip';
import { Loading } from '@/components/Loading';
import { NotFoundTip } from '@/components/NotFoundTip';
import { MonitorStatusPage } from '@/components/monitor/StatusPage';
-import { Button } from '@/components/ui/button';
import { createFileRoute } from '@tanstack/react-router';
export const Route = createFileRoute('/status/$slug')({