mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 16:41:54 +08:00
chore(ui): Update dashboard and layout titles
- Rename application title to "Proxy Go控制台" - Reduce metrics and cache page refresh interval from 5s to 1s for more real-time updates
This commit is contained in:
parent
5c3fb00d57
commit
621900d227
2
web/app/dashboard/cache/page.tsx
vendored
2
web/app/dashboard/cache/page.tsx
vendored
@ -129,7 +129,7 @@ export default function CachePage() {
|
|||||||
fetchConfigs()
|
fetchConfigs()
|
||||||
|
|
||||||
// 设置定时刷新
|
// 设置定时刷新
|
||||||
const interval = setInterval(fetchStats, 5000)
|
const interval = setInterval(fetchStats, 1000)
|
||||||
return () => clearInterval(interval)
|
return () => clearInterval(interval)
|
||||||
}, [fetchStats, fetchConfigs])
|
}, [fetchStats, fetchConfigs])
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ export default function DashboardPage() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchMetrics()
|
fetchMetrics()
|
||||||
const interval = setInterval(fetchMetrics, 5000)
|
const interval = setInterval(fetchMetrics, 1000)
|
||||||
return () => clearInterval(interval)
|
return () => clearInterval(interval)
|
||||||
}, [fetchMetrics])
|
}, [fetchMetrics])
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ import { Toaster } from "@/components/ui/toaster";
|
|||||||
const inter = Inter({ subsets: ["latin"] });
|
const inter = Inter({ subsets: ["latin"] });
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "代理服务管理后台",
|
title: "Proxy Go控制台",
|
||||||
description: "代理服务管理后台",
|
description: "Proxy Go控制台",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user