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:
wood chen 2025-02-16 23:06:40 +08:00
parent 5c3fb00d57
commit 621900d227
3 changed files with 4 additions and 4 deletions

View File

@ -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])

View File

@ -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])

View File

@ -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({