forked from Gitlink/forgeplus-react
change 注释
This commit is contained in:
parent
666693f332
commit
4cb46f4d53
|
@ -14,10 +14,10 @@ function EducoderAccount({form , visible , current_user , onCancel,isCancel,show
|
|||
|
||||
function onOk(values){
|
||||
let url = `/accounts/gitea_register.json`;
|
||||
const { email , is_sync_pwd} = current_user;
|
||||
if(email && !is_sync_pwd){
|
||||
url = `/users/change_password.json`;
|
||||
}
|
||||
// const { email , is_sync_pwd} = current_user;
|
||||
// if(email && !is_sync_pwd){
|
||||
// url = `/users/change_password.json`;
|
||||
// }
|
||||
axios.post(url,{
|
||||
login:current_user && current_user.login,
|
||||
...values
|
||||
|
|
Loading…
Reference in New Issue