Merge branch 'gitlink_server' into new_final

This commit is contained in:
namezlx 2023-09-21 16:47:04 +08:00
commit cc3d7b642f
3 changed files with 15 additions and 6 deletions

View File

@ -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(){

View File

@ -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();
}
})
}
}

View File

@ -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(){