设置 Web 页面标题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user