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 14:10:20
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-03-26 18:55:37
* @Last Modified time: 2026-04-14 15:54:05
*/
import { type FC, useEffect, useState, useRef } from 'react'
import { useParams, useNavigate } from 'react-router-dom';
@@ -46,6 +46,10 @@ const Detail: FC = () => {
getData()
}, [id, query])
useEffect(() => {
document.title = `${data.scene_name} - ${t('memoryBear')}`;
}, [data.scene_name])
/**
* Fetch ontology class list data
*/