Merge branch 'pre_gitlink_ssr' of https://gitlink.org.cn/Gitlink/forgeplus-react into gitlink_ssr_head
This commit is contained in:
commit
7473463d1e
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in New Issue