merge develop

This commit is contained in:
caishi 2021-05-06 17:12:42 +08:00 committed by caishi
parent d5652fba18
commit 194f6af412
1 changed files with 4 additions and 7 deletions

View File

@ -46,14 +46,11 @@ function DivertModal({form , visible , onSuccess , onCancel,owner,repo}){
Axios.post(url,{
...values
}).then(result=>{
if(result){
if(result.data.status === 0){
onSuccess(result.data && result.data.owner);
}else{
onSuccess();
}
if(result && result.data.id){
onSuccess(result.data && result.data.owner);
}else{
onSuccess();
}
}).catch(error=>{})
}
})