|
@@ -31,7 +31,7 @@ const UpdatePassword = (props: any) => {
|
|
|
new_password: md5(values.new_password),
|
|
|
};
|
|
|
updatePwd(formData).then((res: any) => {
|
|
|
- if (res.status === 'OK') {
|
|
|
+ if (res.code === 0) {
|
|
|
message.success('密码更新成功!');
|
|
|
console.log(initialState);
|
|
|
setInitialState((s) => ({ ...s, currentUser: undefined }));
|