forked from Gitlink/forgeplus-react
Merge pull request '判断优化' (#581) from Eeeros/forgeplus-react:gitlink_server into gitlink_server
1
This commit is contained in:
commit
73779df129
|
|
@ -55,8 +55,10 @@ function NewsDetail(props){
|
|||
}, [detail])
|
||||
|
||||
function componentWillUnmount() {
|
||||
document.title= zonedetail.name;
|
||||
setSeoMeta(`${zonedetail.name},`, zonedetail.name, zonedetail.subTitle, `/zone/${deptId}`)
|
||||
if (zonedetail) {
|
||||
document.title= zonedetail.name;
|
||||
setSeoMeta(`${zonedetail.name},`, zonedetail.name, zonedetail.subTitle, `/zone/${deptId}`)
|
||||
}
|
||||
}
|
||||
|
||||
function getDetails(){
|
||||
|
|
|
|||
|
|
@ -34,8 +34,10 @@ function SourceDetail(props){
|
|||
}, [detail])
|
||||
|
||||
function componentWillUnmount() {
|
||||
document.title= zonedetail.name;
|
||||
setSeoMeta(`${zonedetail.name},`, zonedetail.name, zonedetail.subTitle, `/zone/${deptId}`)
|
||||
if (zonedetail) {
|
||||
document.title= zonedetail.name;
|
||||
setSeoMeta(`${zonedetail.name},`, zonedetail.name, zonedetail.subTitle, `/zone/${deptId}`)
|
||||
}
|
||||
}
|
||||
|
||||
function getDetails(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue