...
|
...
|
@@ -196,7 +196,6 @@ export function modifySubmitRequest() { |
|
|
}
|
|
|
|
|
|
export function modifySubmitSuccess() {
|
|
|
Actions.pop();
|
|
|
return {
|
|
|
type: PWD_MODIFY_SUCCESS
|
|
|
};
|
...
|
...
|
@@ -215,11 +214,15 @@ export function pwdModifySubmit(pid, oldPwd, newPwd,newPwdConfirm) { |
|
|
return userService.modifyPassword(pid, oldPwd, newPwd,newPwdConfirm)
|
|
|
.then(function (json) {
|
|
|
dispatch(modifySubmitSuccess());
|
|
|
dispatch(logout());
|
|
|
Alert.alert(
|
|
|
'修改成功',
|
|
|
'',
|
|
|
[{text: 'OK', onPress: () => dispatch(logout())}]
|
|
|
);
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
Alert.alert(
|
|
|
error.message,
|
|
|
error.message || '服务错误',
|
|
|
'',
|
|
|
[{text: 'OK'}]
|
|
|
);
|
...
|
...
|
|