This commit is contained in:
caishi 2021-09-08 11:29:55 +08:00
parent d88179a486
commit 2f5d9d225c
2 changed files with 2 additions and 19 deletions

View File

@ -213,7 +213,7 @@ class Index extends Component {
isSpin: false
})
projectsType && projectsType !== "mirror" && this.props.showNotification(`托管项目创建成功!`);
this.props.history.push(`/projects/${result.data.login}/${result.data.identifier}`);
this.props.history.push(`/${result.data.login}/${result.data.identifier}`);
}
this.setState({
isSpin: false
@ -545,7 +545,7 @@ class Index extends Component {
</div>
<Form.Item className="formTip mt20">
<Button type="primary" onClick={this.subMitFrom} className="mr20">创建项目</Button>
<Link to={'/projects'} className="btn_32">取消</Link>
<Link to={'/explore'} className="btn_32">取消</Link>
</Form.Item>
</div>
</Form>

View File

@ -238,23 +238,6 @@ export function TPMIndexHOC(WrappedComponent) {
})
}
onOk =(values)=>{
let url = `/users/sync_user_info.json`;
const { current_user } = this.state;
axios.post(url,{
login:current_user && current_user.login,
...values
}).then(result=>{
if(result && result.data && result.data.status === 0){
this.setState({
giteaVisible:false,
email:undefined
})
window.location.reload();
}
}).catch(error=>{})
}
render() {
let { isRender , current_user , giteaVisible , email , completeProfile , showCP } = this.state;
const common = {