feat: submit new password to backend and submit user information and add Form to UserSettingProfile (#114)
* feat: add Form to UserSettingProfile * feat: submit user information * feat: submit new password to backend
This commit is contained in:
@@ -52,7 +52,7 @@ const model: DvaModel<SettingModelState> = {
|
||||
const { data } = yield call(userService.setting, payload);
|
||||
const { retcode } = data;
|
||||
if (retcode === 0) {
|
||||
message.success('密码修改成功!');
|
||||
message.success('Modified!');
|
||||
yield put({
|
||||
type: 'updateState',
|
||||
payload: {
|
||||
@@ -61,7 +61,6 @@ const model: DvaModel<SettingModelState> = {
|
||||
});
|
||||
yield put({
|
||||
type: 'getUserInfo',
|
||||
payload: {},
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user