change 注释

This commit is contained in:
caishi 2023-08-07 14:12:32 +08:00
parent 666693f332
commit 4cb46f4d53
1 changed files with 4 additions and 4 deletions

View File

@ -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