设置 Web 页面标题

This commit is contained in:
xintaofei
2026-03-25 23:29:12 +08:00
parent c4bb0ed092
commit d17148f3ba
8 changed files with 62 additions and 2 deletions

View File

@@ -76,6 +76,14 @@ function MergePageInner() {
}
}, [hasValidFolderId, normalizedFolderId])
const pageTitle = folder
? `${t("title")} · ${folder.name}`
: t("title")
useEffect(() => {
document.title = `${pageTitle} - codeg`
}, [pageTitle])
return (
<div className="flex h-screen flex-col overflow-hidden bg-background text-foreground">
<AppTitleBar