diff --git a/web-react/src/pages/system/account/setting/satety/password.jsx b/web-react/src/pages/system/account/setting/satety/password.jsx index b37eb86..8393f03 100644 --- a/web-react/src/pages/system/account/setting/satety/password.jsx +++ b/web-react/src/pages/system/account/setting/satety/password.jsx @@ -23,13 +23,6 @@ export default class form extends Component { open = () => { this.setState({ visible: true }) - } - - /** - * mount后回调 - */ - componentDidMount() { - this.props.created && this.props.created(this) api.getPwdRule({}).then(({ success, data, message }) => { if (success) { const { pattern, descriptions } = data @@ -43,6 +36,13 @@ export default class form extends Component { }) } + /** + * mount后回调 + */ + componentDidMount() { + this.props.created && this.props.created(this) + } + updatePwd(values) { let { password, newPassword } = values.current.getFieldsValue() password = encryptByRSA(password, RSA_PUBLIC_KEY)