Merge branch 'pre_gitlink_ssr' of https://gitlink.org.cn/Gitlink/forgeplus-react into gitlink_ssr_head

This commit is contained in:
谢思 2026-01-19 17:21:41 +08:00
commit 7473463d1e
1 changed files with 2 additions and 1 deletions

View File

@ -54,10 +54,11 @@ export default (props) => {
useEffect(() => {
document.title = `${checkItem && checkItem.titleStr || wikiBySearch}-维基预览`
if(!(str || checkItem.title_sub)) return
const func = sha ? getPreviousWiki : getWiki
func({
...wikiParams,
pageName: str,
pageName: str || checkItem.title_sub,
sha
}).then(res => {
if(res && res.code === 200){