This commit is contained in:
caishi 2023-03-02 17:46:41 +08:00
parent 71bbcb406e
commit ae82595800
1 changed files with 8 additions and 5 deletions

View File

@ -55,6 +55,7 @@ function Details(props){
const permission = props && props.projectDetail && props.projectDetail.permission;
let colors = ["#1abcb1","#28be6c","#e67e22","#db3d1d"];
const {projectDetail} = props;
useEffect(()=>{
if(pathname === `/${owner}/${projectsId}/issues/${index}/copy`){
setEdit(true);
@ -65,6 +66,13 @@ function Details(props){
}
},[pathname])
useEffect(()=>{
if(projectDetail && details){
const { author, name} = projectDetail;
document.title = `${details.subject}-疑修-${author.name}/${name}`;
}
},[details,projectDetail])
useEffect(()=>{
if(index){
Init();
@ -93,11 +101,6 @@ function Details(props){
data.due_date && setDueDate(moment(data.due_date).format('YYYY-MM-DD'));
setOrderId(data.id);
const {projectDetail} = props;
if(projectDetail){
const { author, name} = projectDetail;
document.title = `${data.subject}-疑修-${author.name}/${name}`;
}
}
}).catch(error=>{})
}