Merge branch 'gitlink_server' into new_final
This commit is contained in:
commit
cc3d7b642f
|
|
@ -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(){
|
||||
|
|
|
|||
|
|
@ -84,8 +84,13 @@ function SelfList(props){
|
|||
}else{
|
||||
delNewsMyList(deleId).then(response=>{
|
||||
setVisible(false);
|
||||
props.showNotification("删除成功!");
|
||||
getNew();
|
||||
if(status ===1){
|
||||
props.history.push(`/zone/${deptId}/newdetail/${deleId}`);
|
||||
props.showNotification("已提交删除申请,待管理员审核通过后改文章将被删除");
|
||||
}else{
|
||||
props.showNotification("删除成功!");
|
||||
getNew();
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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