feat(web): update document title

This commit is contained in:
zhaoying
2026-04-14 16:38:59 +08:00
parent 9032f50a19
commit 1294aabbcc
10 changed files with 101 additions and 30 deletions

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing
* @Date: 2026-02-03 17:57:11
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-03-31 15:29:45
* @Last Modified time: 2026-04-14 15:56:15
*/
/**
* RAG User Memory Detail View
@@ -97,6 +97,10 @@ const Rag: FC = () => {
}
const name = loading.detail ? '' : data?.name && data?.name !== '' ? data.name : id
useEffect(() => {
document.title = `${name} - ${t('memoryBear')}`;
}, [name])
const [refreshLoading, setRefreshLoading] = useState(false)
const handleRefresh = () => {
if (refreshLoading || !id) return