访问不存在的文章链接重定向url

This commit is contained in:
谢思 2023-07-20 11:15:32 +08:00
parent 9452296dea
commit b9efd5e6ce
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ function NewsDetail(props){
setIsSpin(false)
}
}).catch(error=>{
props.history.push(`/zone/${deptId}/news`);
setIsSpin(false)
})
}