This commit is contained in:
caishi 2020-08-26 18:37:15 +08:00
parent a09b81df3f
commit ec073cdf71
2 changed files with 14 additions and 15 deletions

View File

@ -128,7 +128,7 @@ function About(props, ref) {
validateFields((error, values) => {
if(!error){
setIsSpining(true);
const url = `/${owner}/${projectsId}/cloud_accounts/${cloudAccount && cloudAccount.id}/activate`;
const url = `/${owner}/${projectsId}/cloud_accounts/${cloudAccount && cloudAccount.id}/activate.json`;
axios.post(url,{
...values
}).then(result=>{

View File

@ -82,6 +82,7 @@ class CoderRootDirectory extends Component {
this.setState({
filePath: url,
});
console.log('filepath',url);
this.getFileDetail(url);
} else {
const { branch } = this.state;
@ -357,7 +358,6 @@ class CoderRootDirectory extends Component {
}
title = (branchLastCommit,lastCommitAuthor) => {
console.log(branchLastCommit)
if (branchLastCommit) {
return (
<div className="f-wrap-alignCenter">
@ -458,19 +458,18 @@ class CoderRootDirectory extends Component {
>
{projectDetail && projectDetail.identifier}
</a>
{array &&
array.map((item, key) => {
return (
<React.Fragment>
{
key === array.length-1 ?
<span className="color-grey-6 subFileName" key={key}>{item}</span>
:
<a onClick={()=>this.returnUlr(`${key === 0 ? `${item}` :`${array[key-1]}/${item}`}`)} className="color-blue subFileName">{item}</a>
}
</React.Fragment>
);
})}
{ array && array.map((item, key) => {
return (
<React.Fragment>
{
key === array.length-1 ?
<span className="color-grey-6 subFileName" key={key}>{item}</span>
:
<a onClick={()=>this.returnUlr(`${key === 0 ? `${item}` :`${array[key-1]}/${item}`}`)} className="color-blue subFileName">{item}</a>
}
</React.Fragment>
);
})}
</span>
)}
</div>