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){
|
function onOk(values){
|
||||||
let url = `/accounts/gitea_register.json`;
|
let url = `/accounts/gitea_register.json`;
|
||||||
const { email , is_sync_pwd} = current_user;
|
// const { email , is_sync_pwd} = current_user;
|
||||||
if(email && !is_sync_pwd){
|
// if(email && !is_sync_pwd){
|
||||||
url = `/users/change_password.json`;
|
// url = `/users/change_password.json`;
|
||||||
}
|
// }
|
||||||
axios.post(url,{
|
axios.post(url,{
|
||||||
login:current_user && current_user.login,
|
login:current_user && current_user.login,
|
||||||
...values
|
...values
|
||||||
|
|
Loading…
Reference in New Issue