devops返回到引擎配置页面需要加state

This commit is contained in:
caishi 2022-05-27 16:04:47 +08:00
parent 13636d74be
commit 34dc16cac0
4 changed files with 9 additions and 4 deletions

View File

@ -104,7 +104,7 @@ function Params(props){
<Banner>
<FlexAJ>
<span className="font-18">引擎 - 参数管理</span>
<Link to={`/${owner}/${projectsId}/devops`} className="font-14 color-grey-9 ml20">返回</Link>
<Link to={{pathname:`/${owner}/${projectsId}/devops`,state:{open_devops:true}}} className="font-14 color-grey-9 ml20">返回</Link>
</FlexAJ>
</Banner>
<Div className="disposeList">

View File

@ -290,7 +290,7 @@ function Structure(props,ref){
<Banner>
<FlexAJ>
<span>构建列表</span>
<Link to={`/${owner}/${projectsId}/devops`} className="font-15 color-grey-9">返回</Link>
<Link to={{pathname:`/${owner}/${projectsId}/devops`,state:{open_devops:true}}} className="font-15 color-grey-9">返回</Link>
</FlexAJ>
</Banner>
<Div>

View File

@ -275,7 +275,10 @@ function disposePipeline(props){
...params
}).then(result=>{
if(result){
props.history.push(`/${owner}/${projectsId}/devops`);
props.history.push({
pathname:`/${owner}/${projectsId}/devops`,
state:{open_devops:true}
});
}
setLoading(false);
}).catch(error=>{

View File

@ -58,7 +58,9 @@ function Index({onCancel,avatarImg,login}){
const reader = new FileReader();
reader.onload = () => {
setAvatarPhoto(reader.result);
if(reader.result){
setAvatarPhoto(reader.result);
}
};
reader.readAsDataURL(files[0]);
}