Commit 502466c6 by end

修改密码

parent 765b8af5
No preview for this file type
......@@ -41,12 +41,11 @@ class EditPassword extends Component {
}
handleSubmit = e => {
e.preventDefault();
// e.preventDefault();
this.props.form.validateFields((err, values) => {
if (err) return;
else {
//因为后台需要传一个字段
let { accountUpdatePassword } = this.props;
let { id, password } = values;
const public_key = '047214fe3a249b75b6ba92ee494e0a8a68c0a19893a480b3c28bf06cd5b7d621243c7f6704caa3b43ade6be15de11cabd185611a9edfdcf1b11d7a2478c67b4c1c'
......@@ -85,7 +84,7 @@ class EditPassword extends Component {
sign: md5(sign)
}
// let passwordVal = { id, password };
accountUpdatePassword(parms);
this.props.accountUpdatePassword(parms);
//关闭模态框
this.props.onCancel(false);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment