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:
balibabu
2024-03-08 17:09:07 +08:00
committed by GitHub
parent 8f86ab9f7f
commit fa171dfe6c
15 changed files with 880 additions and 32 deletions

View File

@@ -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: {},
});
}
},